feat(provider): add NVIDIA endpoints origin header (#27394)

This commit is contained in:
nv-kasikritc 2026-05-14 15:21:58 -07:00 committed by GitHub
commit d34a0194ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 151 additions and 3 deletions

View file

@ -10,6 +10,7 @@ export const NvidiaPlugin = PluginV2.define({
if (evt.provider.id !== ProviderV2.ID.make("nvidia")) return
evt.provider.options.headers["HTTP-Referer"] = "https://opencode.ai/"
evt.provider.options.headers["X-Title"] = "opencode"
evt.provider.options.headers["X-BILLING-INVOKE-ORIGIN"] ??= "OpenCode"
}),
}
}),