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

Function isResponsesEndpoint

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

Source from the content-addressed store, hash-verified

57 * @returns true if the endpoint is already a responses API URL
58 */
59export function isResponsesEndpoint(endpoint: string): boolean {
60 const normalizedEndpoint = endpoint.toLowerCase()
61 return (
62 normalizedEndpoint.includes('/responses') && !normalizedEndpoint.includes('/chat/completions')
63 )
64}
65
66/**
67 * Extracts the base URL from a full Azure OpenAI chat completions URL.

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected