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.
9 lines
392 B
TypeScript
9 lines
392 B
TypeScript
import { defineProvider } from "../define.ts";
|
|
import { finalizeMoonshotModel, MOONSHOT_COMPLETIONS_COMPAT, moonshotModels } from "./moonshotai.ts";
|
|
|
|
export default defineProvider({
|
|
id: "moonshotai-cn",
|
|
models: (ctx) => moonshotModels(ctx, "moonshotai-cn", "https://api.moonshot.cn/v1"),
|
|
compat: { "openai-completions": MOONSHOT_COMPLETIONS_COMPAT },
|
|
finalize: finalizeMoonshotModel,
|
|
});
|