add client header
This commit is contained in:
parent
251fbc0a99
commit
2fb89161c8
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ export namespace ModelsDev {
|
||||||
const result = await fetch("https://models.dev/api.json", {
|
const result = await fetch("https://models.dev/api.json", {
|
||||||
headers: {
|
headers: {
|
||||||
"User-Agent": Installation.USER_AGENT,
|
"User-Agent": Installation.USER_AGENT,
|
||||||
|
"x-opencode-client": Flag.OPENCODE_CLIENT,
|
||||||
},
|
},
|
||||||
signal: AbortSignal.timeout(10 * 1000),
|
signal: AbortSignal.timeout(10 * 1000),
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue