mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-01 12:43:36 +00:00
* fix(opencode): restore Zen model catalog * fix(opencode): restore Zen transport routing * fix(opencode): broaden Zen fallback catalog * fix(opencode): correct Zen family routing * fix(opencode): route Zen MiniMax through Anthropic * fix(opencode): filter Zen live-only catalog rows * fix(opencode): route MiniMax through Zen chat completions * fix(opencode): omit unverified Zen model costs * fix(opencode): align sampled Zen costs * fix(opencode): keep Zen cost metadata required * fix(opencode): keep Zen docs examples resolvable * fix(opencode): move Zen catalog to provider discovery * test(opencode): cover Zen discovery cache isolation * fix(opencode): add Zen GLM-5.2 catalog coverage * test(opencode): detect Zen catalog drift Signed-off-by: sallyom <somalley@redhat.com> --------- Signed-off-by: sallyom <somalley@redhat.com> Co-authored-by: sallyom <somalley@redhat.com>
19 lines
563 B
TypeScript
19 lines
563 B
TypeScript
// Opencode Zen provider module exposes offline catalog metadata to core discovery.
|
|
import type { ProviderPlugin } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import { buildStaticOpencodeZenProviderConfig } from "./provider-catalog.js";
|
|
|
|
const opencodeProviderDiscovery: ProviderPlugin = {
|
|
id: "opencode",
|
|
label: "OpenCode Zen",
|
|
docsPath: "/providers/models",
|
|
auth: [],
|
|
staticCatalog: {
|
|
order: "simple",
|
|
run: async () => ({
|
|
provider: buildStaticOpencodeZenProviderConfig(),
|
|
}),
|
|
},
|
|
};
|
|
|
|
export default opencodeProviderDiscovery;
|