mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
This builds the model catalog from per-provider definitions and models.dev v2 data. It eplacer `generate-models.ts` with one `defineProvider()` file per built-in provider, shared model-family rules (Claude, GPT, DeepSeek, Kimi, Google), and source adapters. models.dev is read through its v2 API. Outputs and CLI flags are unchanged.
8 lines
351 B
TypeScript
8 lines
351 B
TypeScript
import { defineProvider } from "../define.ts";
|
|
import { ZAI_COMPLETIONS_COMPAT, zaiCodingPlanModels } from "./zai.ts";
|
|
|
|
export default defineProvider({
|
|
id: "zai-coding-cn",
|
|
models: (ctx) => zaiCodingPlanModels(ctx, "zhipuai-coding-plan", "https://open.bigmodel.cn/api/coding/paas/v4"),
|
|
compat: { "openai-completions": ZAI_COMPLETIONS_COMPAT },
|
|
});
|