feat(provider): add NVIDIA endpoints origin header (#27394)
This commit is contained in:
parent
43310f4d8c
commit
d34a0194ec
4 changed files with 151 additions and 3 deletions
|
|
@ -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"
|
||||
}),
|
||||
}
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue