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

Method GetEnabledChatModelConfigByID

coderd/database/querier.go:468–468  ·  view source on GitHub ↗

Providers can be disabled independently of their model configs. Check both to ensure the selected config is actually usable.

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

466 // Providers can be disabled independently of their model configs.
467 // Check both to ensure the selected config is actually usable.
468 GetEnabledChatModelConfigByID(ctx context.Context, id uuid.UUID) (ChatModelConfig, error)
469 GetEnabledChatModelConfigs(ctx context.Context) ([]ChatModelConfig, error)
470 GetEnabledMCPServerConfigs(ctx context.Context) ([]MCPServerConfig, error)
471 GetExternalAuthLink(ctx context.Context, arg GetExternalAuthLinkParams) (ExternalAuthLink, error)

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 2

TestChatsMethod · 0.52