2026-03-17 00:14:01 -07:00
|
|
|
import { definePluginEntry } from "openclaw/plugin-sdk/core";
|
2026-03-16 21:33:50 -07:00
|
|
|
import { buildSingleProviderApiKeyCatalog } from "openclaw/plugin-sdk/provider-catalog";
|
2026-03-16 18:33:07 -07:00
|
|
|
import { buildNvidiaProvider } from "./provider-catalog.js";
|
2026-03-15 16:09:21 -07:00
|
|
|
|
|
|
|
|
const PROVIDER_ID = "nvidia";
|
|
|
|
|
|
2026-03-17 00:14:01 -07:00
|
|
|
export default definePluginEntry({
|
2026-03-15 16:09:21 -07:00
|
|
|
id: PROVIDER_ID,
|
|
|
|
|
name: "NVIDIA Provider",
|
|
|
|
|
description: "Bundled NVIDIA provider plugin",
|
2026-03-17 00:14:01 -07:00
|
|
|
register(api) {
|
2026-03-15 16:09:21 -07:00
|
|
|
api.registerProvider({
|
|
|
|
|
id: PROVIDER_ID,
|
|
|
|
|
label: "NVIDIA",
|
|
|
|
|
docsPath: "/providers/nvidia",
|
|
|
|
|
envVars: ["NVIDIA_API_KEY"],
|
|
|
|
|
auth: [],
|
|
|
|
|
catalog: {
|
|
|
|
|
order: "simple",
|
2026-03-17 04:03:07 +00:00
|
|
|
run: (ctx) =>
|
|
|
|
|
buildSingleProviderApiKeyCatalog({
|
|
|
|
|
ctx,
|
|
|
|
|
providerId: PROVIDER_ID,
|
|
|
|
|
buildProvider: buildNvidiaProvider,
|
|
|
|
|
}),
|
2026-03-15 16:09:21 -07:00
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
2026-03-17 00:14:01 -07:00
|
|
|
});
|