Feat : qoder provider

This commit is contained in:
Simon Shi
2026-05-29 17:36:27 +07:00
committed by decolua
parent 53c0eefa00
commit 4baaa5c7aa
6 changed files with 27 additions and 11 deletions
+3 -1
View File
@@ -116,9 +116,11 @@ async function fetchQoderCatalogRaw(credentials, signal, proxyOptions = null) {
if (!entry || typeof entry !== "object") continue;
const key = entry.key;
if (!key) continue;
if (entry.enable === false) continue;
// Always cache the config — chat needs model_config even for UI-hidden
// models (enable:false). Upstream still accepts chat for these keys.
rawConfigs.set(key, entry);
if (entry.enable === false) continue;
const display = entry.display_name || key;
const ctx = Number(entry.max_input_tokens) || 131_072;