(ctx context.Context, templateAllowlist string)
| 8137 | } |
| 8138 | |
| 8139 | func (q *querier) UpsertChatTemplateAllowlist(ctx context.Context, templateAllowlist string) error { |
| 8140 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
| 8141 | return err |
| 8142 | } |
| 8143 | return q.db.UpsertChatTemplateAllowlist(ctx, templateAllowlist) |
| 8144 | } |
| 8145 | |
| 8146 | func (q *querier) UpsertChatTitleGenerationModelOverride(ctx context.Context, value string) error { |
| 8147 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
nothing calls this directly
no test coverage detected