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

Method UpdateAIProvider

coderd/database/querier.go:1182–1182  ·  view source on GitHub ↗
(ctx context.Context, arg UpdateAIProviderParams)

Source from the content-addressed store, hash-verified

1180 UnsetDefaultChatModelConfigs(ctx context.Context) error
1181 UpdateAIBridgeInterceptionEnded(ctx context.Context, arg UpdateAIBridgeInterceptionEndedParams) (AIBridgeInterception, error)
1182 UpdateAIProvider(ctx context.Context, arg UpdateAIProviderParams) (AIProvider, error)
1183 UpdateAPIKeyByID(ctx context.Context, arg UpdateAPIKeyByIDParams) error
1184 UpdateChatACLByID(ctx context.Context, arg UpdateChatACLByIDParams) error
1185 UpdateChatBuildAgentBinding(ctx context.Context, arg UpdateChatBuildAgentBindingParams) (Chat, error)

Callers 15

TestListChatModelsFunction · 0.65
TestUserAIProviderKeysFunction · 0.65
TestAIProvidersCRUDFunction · 0.65
aiProvidersUpdateMethod · 0.65
UpdateAIProviderMethod · 0.65

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 15

TestListChatModelsFunction · 0.52
TestUserAIProviderKeysFunction · 0.52
TestAIProvidersCRUDFunction · 0.52
TestAIBridgeMethod · 0.52
setOpenAIProviderBaseURLFunction · 0.52
TestAIProviderAuditDiffFunction · 0.52