MCPcopy Index your code
hub / github.com/coder/coder / GetChatModelConfigs

Method GetChatModelConfigs

coderd/database/dbauthz/dbauthz.go:3140–3145  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

3138}
3139
3140func (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
3147func (q *querier) GetChatModelConfigsForTelemetry(ctx context.Context) ([]database.GetChatModelConfigsForTelemetryRow, error) {
3148 // Telemetry queries are called from system contexts only.

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95
GetChatModelConfigsMethod · 0.65

Tested by

no test coverage detected