mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-25 17:12:17 +00:00
update inference headers
This commit is contained in:
parent
d0ceaef6aa
commit
31c409a865
1 changed files with 6 additions and 4 deletions
|
|
@ -236,10 +236,12 @@ export async function handler(
|
|||
})
|
||||
headers.delete("host")
|
||||
headers.delete("content-length")
|
||||
headers.delete("x-opencode-request")
|
||||
if (!isNewInference) headers.delete("x-opencode-session")
|
||||
headers.delete("x-opencode-project")
|
||||
headers.delete("x-opencode-client")
|
||||
if (!isNewInference) {
|
||||
headers.delete("x-opencode-session")
|
||||
headers.delete("x-opencode-project")
|
||||
headers.delete("x-opencode-client")
|
||||
headers.delete("x-opencode-request")
|
||||
}
|
||||
return headers
|
||||
})(),
|
||||
body: reqBody,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue