(apiType, model1, model2 string)
| 608 | } |
| 609 | |
| 610 | func AreModelsCompatible(apiType, model1, model2 string) bool { |
| 611 | if model1 == model2 { |
| 612 | return true |
| 613 | } |
| 614 | |
| 615 | if apiType == APIType_OpenAIResponses { |
| 616 | gpt5Models := map[string]bool{ |
| 617 | "gpt-5.2": true, |
| 618 | "gpt-5.1": true, |
| 619 | "gpt-5": true, |
| 620 | "gpt-5-mini": true, |
| 621 | "gpt-5-nano": true, |
| 622 | } |
| 623 | |
| 624 | if gpt5Models[model1] && gpt5Models[model2] { |
| 625 | return true |
| 626 | } |
| 627 | } |
| 628 | |
| 629 | return false |
| 630 | } |
no outgoing calls
no test coverage detected