feat: better management of prompts

This commit is contained in:
Gab
2026-03-26 13:42:50 +11:00
parent d5fa434c43
commit c095414857
4 changed files with 224 additions and 19 deletions

View File

@@ -170,6 +170,9 @@ export namespace ModelsDev {
// Only include serverless models
if (model.deploymentType && model.deploymentType !== "serverless") continue
// Only include reasoner models for toothfairyai provider
if (!model.reasoner) continue
// Use the full key as the model ID (API expects the exact key)
const modelId = key
@@ -221,27 +224,13 @@ export namespace ModelsDev {
npm: "@toothfairyai/sdk",
api: "https://ais.toothfairyai.com",
models: {
sorcerer: {
id: "sorcerer",
name: "TF Sorcerer",
family: "groq",
release_date: "2025-01-01",
attachment: true,
reasoning: false,
temperature: true,
tool_call: true,
options: {},
cost: { input: 0.62, output: 1.75 },
limit: { context: 128000, output: 16000 },
modalities: { input: ["text", "image"], output: ["text"] },
},
mystica: {
id: "mystica",
name: "TF Mystica",
"mystica-15": {
id: "mystica-15",
name: "TF Mystica 15",
family: "fireworks",
release_date: "2025-01-01",
attachment: true,
reasoning: false,
reasoning: true,
temperature: true,
tool_call: true,
options: {},

View File

@@ -1491,7 +1491,7 @@ export namespace Provider {
return undefined
}
const priority = ["gpt-5", "claude-sonnet-4", "big-pickle", "gemini-3-pro"]
const priority = ["mystica-15", "sorcerer-15"]
export function sort<T extends { id: string }>(models: T[]) {
return sortBy(
models,