(ctx context.Context)
| 3178 | } |
| 3179 | |
| 3180 | func (q *querier) GetChatRetentionDays(ctx context.Context) (int32, error) { |
| 3181 | // Chat retention is a deployment-wide config read by dbpurge. |
| 3182 | // Only requires a valid actor in context. |
| 3183 | if _, ok := ActorFromContext(ctx); !ok { |
| 3184 | return 0, ErrNoActor |
| 3185 | } |
| 3186 | return q.db.GetChatRetentionDays(ctx) |
| 3187 | } |
| 3188 | |
| 3189 | func (q *querier) GetChatSystemPrompt(ctx context.Context) (string, error) { |
| 3190 | // The system prompt is a deployment-wide setting read during chat |
nothing calls this directly
no test coverage detected