mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-26 20:42:18 +00:00
update inference headers
This commit is contained in:
parent
2f36ffe35d
commit
bdcb6be649
1 changed files with 3 additions and 0 deletions
|
|
@ -234,6 +234,9 @@ export async function handler(
|
|||
}
|
||||
headers.set(k, v)
|
||||
})
|
||||
if (isNewInference) {
|
||||
headers.set("x-opencode-model", model)
|
||||
}
|
||||
headers.delete("host")
|
||||
headers.delete("content-length")
|
||||
if (!isNewInference) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue