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.
13 lines
477 B
TypeScript
13 lines
477 B
TypeScript
import { defineProvider, mergeThinking, modelsDevModels } from "../define.ts";
|
|
|
|
export default defineProvider({
|
|
id: "groq",
|
|
models: (ctx) =>
|
|
modelsDevModels(ctx, "groq", { api: "openai-completions", baseUrl: "https://api.groq.com/openai/v1" }),
|
|
compat: { "openai-completions": { supportsStrictMode: true } },
|
|
finalize: (model) => {
|
|
if (model.id === "qwen/qwen3.6-27b") {
|
|
mergeThinking(model, { minimal: null, low: null, medium: null, high: "default" });
|
|
}
|
|
},
|
|
});
|