Files
KrisHD_AI/public/app/modelCapabilities.js
T

7 lines
355 B
JavaScript

// Conservative allowlist for models supporting the boolean think API.
// Unknown models remain usable for normal chat.
export function supportsReasoning(model) {
const id = String(typeof model === "string" ? model : model?.model || model?.name || "").toLowerCase().split("/").at(-1);
return /^(qwen3|deepseek-r1|deepseek-v3\.1)(:|$)/.test(id);
}