Skip to content

Commit 229b422

Browse files
authored
refactor(ai): pass provider query params through without copying (#54167)
1 parent 5cfe3b4 commit 229b422

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/ai/src/providers/azure.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const config = ({
162162
headers,
163163
http: body === undefined ? undefined : { body },
164164
providerOptions,
165-
queryParams: queryParams === undefined ? undefined : { ...queryParams },
165+
queryParams,
166166
useDeploymentBasedUrls,
167167
}
168168
if (baseURL !== undefined) return { ...common, baseURL }

‎packages/ai/src/providers/openai.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const config = ({
154154
headers: Object.keys(headers).length === 0 ? undefined : headers,
155155
http: body === undefined ? undefined : { body },
156156
providerOptions,
157-
queryParams: queryParams === undefined ? undefined : { ...queryParams },
157+
queryParams,
158158
}
159159
}
160160

0 commit comments

Comments
 (0)