mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-26 20:32:32 +00:00
update inference headers
This commit is contained in:
parent
a57230b80b
commit
1e86be2bc5
1 changed files with 2 additions and 2 deletions
|
|
@ -235,7 +235,7 @@ export async function handler(
|
|||
headers.set(k, v)
|
||||
})
|
||||
if (isNewInference) {
|
||||
headers.set("x-opencode-model", model)
|
||||
headers.set("x-zen-model", model)
|
||||
}
|
||||
headers.delete("host")
|
||||
headers.delete("content-length")
|
||||
|
|
@ -244,7 +244,7 @@ export async function handler(
|
|||
headers.delete("x-opencode-project")
|
||||
headers.delete("x-opencode-client")
|
||||
headers.delete("x-opencode-request")
|
||||
headers.delete("x-opencode-model")
|
||||
headers.delete("x-zen-model")
|
||||
}
|
||||
return headers
|
||||
})(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue