mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-13 19:46:16 +03:00
refactor(ai): pass provider query params through without copying (#54167)
This commit is contained in:
committed by
GitHub
Unverified
parent
5cfe3b4271
commit
229b422bd6
@@ -162,7 +162,7 @@ const config = ({
|
||||
headers,
|
||||
http: body === undefined ? undefined : { body },
|
||||
providerOptions,
|
||||
queryParams: queryParams === undefined ? undefined : { ...queryParams },
|
||||
queryParams,
|
||||
useDeploymentBasedUrls,
|
||||
}
|
||||
if (baseURL !== undefined) return { ...common, baseURL }
|
||||
|
||||
@@ -154,7 +154,7 @@ const config = ({
|
||||
headers: Object.keys(headers).length === 0 ? undefined : headers,
|
||||
http: body === undefined ? undefined : { body },
|
||||
providerOptions,
|
||||
queryParams: queryParams === undefined ? undefined : { ...queryParams },
|
||||
queryParams,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user