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

Function isZeroChatModelCallConfig

coderd/exp_chats.go:7476–7489  ·  view source on GitHub ↗
(config *codersdk.ChatModelCallConfig)

Source from the content-addressed store, hash-verified

7474}
7475
7476func isZeroChatModelCallConfig(config *codersdk.ChatModelCallConfig) bool {
7477 if config == nil {
7478 return true
7479 }
7480
7481 return config.MaxOutputTokens == nil &&
7482 config.Temperature == nil &&
7483 config.TopP == nil &&
7484 config.TopK == nil &&
7485 config.PresencePenalty == nil &&
7486 config.FrequencyPenalty == nil &&
7487 isZeroModelCostConfig(config.Cost) &&
7488 isZeroChatModelProviderOptions(config.ProviderOptions)
7489}
7490
7491func isZeroModelCostConfig(cost *codersdk.ModelCostConfig) bool {
7492 if cost == nil {

Callers 1

Calls 2

isZeroModelCostConfigFunction · 0.85

Tested by

no test coverage detected