(url: string)
| 36 | * internally appends /v1/messages. |
| 37 | */ |
| 38 | export function normalizeAnthropicBaseUrl(url: string): string { |
| 39 | return url.replace(/\/v1\/?$/, '') |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Auto-append /v1 to OpenAI-compatible URLs when the path is empty |
no outgoing calls
no test coverage detected