(ctx context.Context, id uuid.UUID)
| 3131 | } |
| 3132 | |
| 3133 | func (q *querier) GetChatModelConfigByID(ctx context.Context, id uuid.UUID) (database.ChatModelConfig, error) { |
| 3134 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceDeploymentConfig); err != nil { |
| 3135 | return database.ChatModelConfig{}, err |
| 3136 | } |
| 3137 | return q.db.GetChatModelConfigByID(ctx, id) |
| 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 { |
nothing calls this directly
no test coverage detected