MCPcopy Index your code
hub / github.com/simstudioai/sim / isChatCompletionsEndpoint

Function isChatCompletionsEndpoint

apps/sim/providers/azure-openai/utils.ts:47–50  ·  view source on GitHub ↗
(endpoint: string)

Source from the content-addressed store, hash-verified

45 * @returns true if the endpoint is for chat completions API
46 */
47export 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.

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected