Buckets:
| import { Effect } from "effect" | |
| import { PluginV2 } from "../../plugin" | |
| export const NvidiaPlugin = PluginV2.define({ | |
| id: PluginV2.ID.make("nvidia"), | |
| effect: Effect.gen(function* () { | |
| return { | |
| "catalog.transform": Effect.fn(function* (evt) { | |
| for (const item of evt.provider.list()) { | |
| if (item.provider.api.type !== "aisdk") continue | |
| if (item.provider.api.package !== "@ai-sdk/openai-compatible") continue | |
| if (item.provider.api.url !== "https://integrate.api.nvidia.com/v1") continue | |
| evt.provider.update(item.provider.id, (provider) => { | |
| provider.request.headers["HTTP-Referer"] = "https://opencode.ai/" | |
| provider.request.headers["X-Title"] = "opencode" | |
| provider.request.headers["X-BILLING-INVOKE-ORIGIN"] ??= "OpenCode" | |
| }) | |
| } | |
| }), | |
| } | |
| }), | |
| }) | |
Xet Storage Details
- Size:
- 866 Bytes
- Xet hash:
- ed9388d94793d88051067da352a337591b6aa9163084d19b831442cbe9048b40
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.