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

Function isZeroModelCostConfig

coderd/exp_chats.go:7491–7500  ·  view source on GitHub ↗
(cost *codersdk.ModelCostConfig)

Source from the content-addressed store, hash-verified

7489}
7490
7491func isZeroModelCostConfig(cost *codersdk.ModelCostConfig) bool {
7492 if cost == nil {
7493 return true
7494 }
7495
7496 return cost.InputPricePerMillionTokens == nil &&
7497 cost.OutputPricePerMillionTokens == nil &&
7498 cost.CacheReadPricePerMillionTokens == nil &&
7499 cost.CacheWritePricePerMillionTokens == nil
7500}
7501
7502func isZeroChatModelProviderOptions(options *codersdk.ChatModelProviderOptions) bool {
7503 if options == nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected