MCPcopy
hub / github.com/wavetermdev/waveterm / AreModelsCompatible

Function AreModelsCompatible

pkg/aiusechat/uctypes/uctypes.go:610–630  ·  view source on GitHub ↗
(apiType, model1, model2 string)

Source from the content-addressed store, hash-verified

608}
609
610func 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}

Callers 3

RunAnthropicChatStepFunction · 0.92
PostMessageMethod · 0.92
RunOpenAIChatStepFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected