mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-16 12:30:49 +00:00
28 lines
797 B
TypeScript
28 lines
797 B
TypeScript
import { emptyPluginConfigSchema, type OpenClawPluginApi } from "openclaw/plugin-sdk/core";
|
|
|
|
const PROVIDER_ID = "opencode-go";
|
|
|
|
const opencodeGoPlugin = {
|
|
id: PROVIDER_ID,
|
|
name: "OpenCode Go Provider",
|
|
description: "Bundled OpenCode Go provider plugin",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: OpenClawPluginApi) {
|
|
api.registerProvider({
|
|
id: PROVIDER_ID,
|
|
label: "OpenCode Go",
|
|
docsPath: "/providers/models",
|
|
envVars: ["OPENCODE_API_KEY", "OPENCODE_ZEN_API_KEY"],
|
|
auth: [],
|
|
capabilities: {
|
|
openAiCompatTurnValidation: false,
|
|
geminiThoughtSignatureSanitization: true,
|
|
geminiThoughtSignatureModelHints: ["gemini"],
|
|
},
|
|
isModernModelRef: () => true,
|
|
});
|
|
},
|
|
};
|
|
|
|
export default opencodeGoPlugin;
|