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

Function extractDeploymentFromUrl

apps/sim/providers/azure-openai/utils.ts:95–99  ·  view source on GitHub ↗
(fullUrl: string)

Source from the content-addressed store, hash-verified

93 * @returns The deployment name or null if not found
94 */
95export function extractDeploymentFromUrl(fullUrl: string): string | null {
96 // Match /deployments/{deployment-name}/ pattern
97 const match = fullUrl.match(/\/deployments\/([^/]+)/i)
98 return match ? match[1] : null
99}
100
101/**
102 * Extracts the api-version from a full Azure OpenAI URL query string.

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected