(ctx context.Context, value string)
| 8130 | } |
| 8131 | |
| 8132 | func (q *querier) UpsertChatSystemPrompt(ctx context.Context, value string) error { |
| 8133 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil { |
| 8134 | return err |
| 8135 | } |
| 8136 | return q.db.UpsertChatSystemPrompt(ctx, value) |
| 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 { |
nothing calls this directly
no test coverage detected