(ctx context.Context)
| 3138 | } |
| 3139 | |
| 3140 | func (q *querier) GetChatModelConfigs(ctx context.Context) ([]database.ChatModelConfig, error) { |
| 3141 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
| 3142 | return nil, err |
| 3143 | } |
| 3144 | return q.db.GetChatModelConfigs(ctx) |
| 3145 | } |
| 3146 | |
| 3147 | func (q *querier) GetChatModelConfigsForTelemetry(ctx context.Context) ([]database.GetChatModelConfigsForTelemetryRow, error) { |
| 3148 | // Telemetry queries are called from system contexts only. |
nothing calls this directly
no test coverage detected