moved js files in public into js and css into css folder

This commit is contained in:
2026-09-22 21:55:02 +02:00
parent 99a3277e64
commit 08f5f3f8d9
40 changed files with 1772 additions and 1555 deletions
+12
View File
@@ -0,0 +1,12 @@
// Conservative allowlist for models supporting the boolean think API.
// Unknown models remain usable for normal chat.
const reasoningFamilies = new Set(["qwen3", "deepseek-r1", "deepseek-v3.1"]);
export function getModelFamily(model) {
const id = typeof model === "string" ? model : model?.model || model?.name || model?.id || "";
return String(id).trim().toLowerCase().split("/").at(-1).split(":")[0];
}
export function supportsReasoning(model) {
return reasoningFamilies.has(getModelFamily(model));
}