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

Method GetAIModelPriceByProviderModel

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

Source from the content-addressed store, hash-verified

267 GetAIBridgeToolUsagesByInterceptionID(ctx context.Context, interceptionID uuid.UUID) ([]AIBridgeToolUsage, error)
268 GetAIBridgeUserPromptsByInterceptionID(ctx context.Context, interceptionID uuid.UUID) ([]AIBridgeUserPrompt, error)
269 GetAIModelPriceByProviderModel(ctx context.Context, arg GetAIModelPriceByProviderModelParams) (AiModelPrice, error)
270 GetAIProviderByID(ctx context.Context, id uuid.UUID) (AIProvider, error)
271 // Lock the provider row until the model-config write completes. The
272 // transaction alone does not stop a concurrent soft-delete or disable

Callers 4

TestAIBridgeMethod · 0.65
TestSeedFromBytesFunction · 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 2

TestAIBridgeMethod · 0.52
TestSeedFromBytesFunction · 0.52