mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-25 06:19:31 +00:00
Register OpenCode Go's provider-owned static catalog so lifecycle cache warmup supplies the correct context window to memory flush and compaction without persisting catalog rows in user config. Fixes #92912. Co-authored-by: kumaxs <45620232+kumaxs@users.noreply.github.com>
19 lines
566 B
TypeScript
19 lines
566 B
TypeScript
// Opencode Go provider module exposes offline catalog metadata to core discovery.
|
|
import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import { buildStaticOpencodeGoProviderConfig } from "./provider-catalog.js";
|
|
|
|
const opencodeGoProviderDiscovery: ProviderPlugin = {
|
|
id: "opencode-go",
|
|
label: "OpenCode Go",
|
|
docsPath: "/providers/models",
|
|
auth: [],
|
|
staticCatalog: {
|
|
order: "simple",
|
|
run: async () => ({
|
|
provider: buildStaticOpencodeGoProviderConfig(),
|
|
}),
|
|
},
|
|
};
|
|
|
|
export default opencodeGoProviderDiscovery;
|