Files
openclaw/extensions/openrouter/provider-contract-api.ts
Peter Steinberger f453904165 feat: add fal and OpenRouter music generation (#82789)
* feat: add fal and OpenRouter music generation

* fix: repair music generation CI gates

* chore: refresh proof gate
2026-05-17 02:05:22 +01:00

28 lines
756 B
TypeScript

import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared";
export function createOpenrouterProvider(): ProviderPlugin {
return {
id: "openrouter",
label: "OpenRouter",
docsPath: "/providers/models",
envVars: ["OPENROUTER_API_KEY"],
auth: [
{
id: "api-key",
kind: "api_key",
label: "OpenRouter API key",
hint: "API key",
run: async () => ({ profiles: [] }),
wizard: {
choiceId: "openrouter-api-key",
choiceLabel: "OpenRouter API key",
groupId: "openrouter",
groupLabel: "OpenRouter",
groupHint: "API key",
onboardingScopes: ["text-inference", "music-generation"],
},
},
],
};
}