fix: default low thinking for reasoning models

This commit is contained in:
Peter Steinberger
2026-01-03 12:18:50 +00:00
parent 6e16c0699a
commit b6301c719b
14 changed files with 308 additions and 20 deletions

View File

@@ -7,6 +7,7 @@ export type ModelCatalogEntry = {
name: string;
provider: string;
contextWindow?: number;
reasoning?: boolean;
};
type DiscoveredModel = {
@@ -14,6 +15,7 @@ type DiscoveredModel = {
name?: string;
provider: string;
contextWindow?: number;
reasoning?: boolean;
};
let modelCatalogPromise: Promise<ModelCatalogEntry[]> | null = null;
@@ -56,7 +58,9 @@ export async function loadModelCatalog(params?: {
typeof entry?.contextWindow === "number" && entry.contextWindow > 0
? entry.contextWindow
: undefined;
models.push({ id, name, provider, contextWindow });
const reasoning =
typeof entry?.reasoning === "boolean" ? entry.reasoning : undefined;
models.push({ id, name, provider, contextWindow, reasoning });
}
} catch {
// Leave models empty on discovery errors.