add client header

thinking-toggle-wip
Frank 2025-12-18 10:33:25 -05:00 committed by Aiden Cline
parent f5a1cdad2f
commit dc1cc77ee1
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ export namespace ModelsDev {
const result = await fetch("https://models.dev/api.json", {
headers: {
"User-Agent": Installation.USER_AGENT,
"x-opencode-client": Flag.OPENCODE_CLIENT,
},
signal: AbortSignal.timeout(10 * 1000),
}).catch((e) => {