isGatewayProvider reports whether the provider routes requests to multiple upstream model providers using a " / " model identifier, where the slash is part of the upstream model ID rather than a hint.
(provider string)
| 603 | // identifier, where the slash is part of the upstream model ID rather |
| 604 | // than a hint. |
| 605 | func isGatewayProvider(provider string) bool { |
| 606 | switch provider { |
| 607 | case fantasyvercel.Name, |
| 608 | fantasyopenrouter.Name, |
| 609 | fantasyopenaicompat.Name: |
| 610 | return true |
| 611 | default: |
| 612 | return false |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | // NormalizeProvider canonicalizes a provider name. |
| 617 | func NormalizeProvider(provider string) string { |
no outgoing calls
no test coverage detected