tweak: set opencode as user agent for most interefence requests
This commit is contained in:
parent
68e6c540bb
commit
d7192d6af9
1 changed files with 5 additions and 1 deletions
|
|
@ -212,7 +212,11 @@ export namespace LLM {
|
||||||
"x-opencode-request": input.user.id,
|
"x-opencode-request": input.user.id,
|
||||||
"x-opencode-client": Flag.OPENCODE_CLIENT,
|
"x-opencode-client": Flag.OPENCODE_CLIENT,
|
||||||
}
|
}
|
||||||
: undefined),
|
: input.model.providerID !== "anthropic"
|
||||||
|
? {
|
||||||
|
"User-Agent": `opencode/${Installation.VERSION}`,
|
||||||
|
}
|
||||||
|
: undefined),
|
||||||
...input.model.headers,
|
...input.model.headers,
|
||||||
},
|
},
|
||||||
maxRetries: input.retries ?? 0,
|
maxRetries: input.retries ?? 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue