(endpoint: string)
| 45 | * @returns true if the endpoint is for chat completions API |
| 46 | */ |
| 47 | export function isChatCompletionsEndpoint(endpoint: string): boolean { |
| 48 | const normalizedEndpoint = endpoint.toLowerCase() |
| 49 | return normalizedEndpoint.includes('/chat/completions') |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Determines if an Azure OpenAI endpoint URL is already a complete responses API URL. |