(ctx context.Context)
| 3222 | } |
| 3223 | |
| 3224 | func (q *querier) GetChatTitleGenerationModelOverride(ctx context.Context) (string, error) { |
| 3225 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
| 3226 | return "", err |
| 3227 | } |
| 3228 | return q.db.GetChatTitleGenerationModelOverride(ctx) |
| 3229 | } |
| 3230 | |
| 3231 | func (q *querier) GetChatUsageLimitConfig(ctx context.Context) (database.ChatUsageLimitConfig, error) { |
| 3232 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected