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

Method CountEnabledModelsWithoutPricing

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

Counts enabled, non-deleted model configs that lack both input and output pricing in their JSONB options.cost configuration.

(ctx context.Context)

Source from the content-addressed store, hash-verified

99 // Counts enabled, non-deleted model configs that lack both input and
100 // output pricing in their JSONB options.cost configuration.
101 CountEnabledModelsWithoutPricing(ctx context.Context) (int64, error)
102 // CountInProgressPrebuilds returns the number of in-progress prebuilds, grouped by preset ID and transition.
103 // Prebuild considered in-progress if it's in the "pending", "starting", "stopping", or "deleting" state.
104 CountInProgressPrebuilds(ctx context.Context) ([]CountInProgressPrebuildsRow, error)

Callers 4

TestChatsMethod · 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 1

TestChatsMethod · 0.52