()
| 44 | } |
| 45 | |
| 46 | function isModelCapabilitiesEligible(): boolean { |
| 47 | if (process.env.USER_TYPE !== 'ant') return false |
| 48 | if (getAPIProvider() !== 'firstParty') return false |
| 49 | if (!isFirstPartyAnthropicBaseUrl()) return false |
| 50 | return true |
| 51 | } |
| 52 | |
| 53 | // Longest-id-first so substring match prefers most specific; secondary key for stable isEqual |
| 54 | function sortForMatching(models: ModelCapability[]): ModelCapability[] { |
no test coverage detected