(cost *codersdk.ModelCostConfig)
| 7489 | } |
| 7490 | |
| 7491 | func 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 | |
| 7502 | func isZeroChatModelProviderOptions(options *codersdk.ChatModelProviderOptions) bool { |
| 7503 | if options == nil { |
no outgoing calls
no test coverage detected