mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-15 13:14:35 +00:00
feat: better management of prompts
This commit is contained in:
@@ -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: {},
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user