We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5d72de commit 31af074Copy full SHA for 31af074
1 file changed
packages/core/src/env.ts
@@ -830,7 +830,12 @@ export async function parseTokenFromEnv(
830
831
function parseAzureVersionFromUrl(url: string) {
832
const uri = uriTryParse(url)
833
- return uri?.searchParams.get("api-version") || undefined
+ const v = uri?.searchParams.get("api-version") || undefined
834
+ // azure:gpt-4o_2024-11-20
835
+ // {api-version}
836
+ if (v?.startsWith("{")) return undefined
837
+
838
+ return v
839
}
840
841
function cleanApiBase(b: string) {
0 commit comments