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…
Reference in a new issue