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

Method GetAIProviderByName

coderd/database/querier.go:275–275  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

273 // between validation and writing the model config reference.
274 GetAIProviderByIDForReferenceLock(ctx context.Context, id uuid.UUID) (AIProvider, error)
275 GetAIProviderByName(ctx context.Context, name string) (AIProvider, error)
276 GetAIProviderKeyByID(ctx context.Context, id uuid.UUID) (AIProviderKey, error)
277 // Returns the provider IDs that have at least one provider-scoped key.
278 GetAIProviderKeyPresence(ctx context.Context, providerIds []uuid.UUID) ([]uuid.UUID, error)

Callers 9

lookupAIProviderFunction · 0.65
GetAIProviderByNameMethod · 0.65
GetAIProviderByNameMethod · 0.65
TestAIBridgeMethod · 0.65
parseAIProviderNameFunction · 0.65
TestAIProvidersFunction · 0.65
GetAIProviderByNameMethod · 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 4

TestAIBridgeMethod · 0.52
TestAIProvidersFunction · 0.52