(config *codersdk.ChatModelCallConfig)
| 7474 | } |
| 7475 | |
| 7476 | func 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 | |
| 7491 | func isZeroModelCostConfig(cost *codersdk.ModelCostConfig) bool { |
| 7492 | if cost == nil { |
no test coverage detected