* Extract model ID from full model string (strip provider prefix)
(modelId: string)
| 115 | * Extract model ID from full model string (strip provider prefix) |
| 116 | */ |
| 117 | function extractModelId(modelId: string): string { |
| 118 | const parts = modelId.split("/") |
| 119 | return parts.length > 1 ? parts[1] : parts[0] |
| 120 | } |
| 121 | |
| 122 | function codexBaseModelId(modelId: string): string | null { |
| 123 | if (!modelId.includes("codex")) { |
no outgoing calls
no test coverage detected