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
326 B
TypeScript
8 lines
326 B
TypeScript
import { defineProvider } from "../define.ts";
|
|
import { XIAOMI_COMPLETIONS_COMPAT, xiaomiModels } from "./xiaomi.ts";
|
|
|
|
export default defineProvider({
|
|
id: "xiaomi-token-plan-cn",
|
|
models: (ctx) => xiaomiModels(ctx, "https://token-plan-cn.xiaomimimo.com/v1"),
|
|
compat: { "openai-completions": XIAOMI_COMPLETIONS_COMPAT },
|
|
});
|