Skip to content
Snippets Groups Projects
Unverified Commit 90ec7355 authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

Merge branch 'master' into 3625-bypass-ip-check

parents 10490c11 1d1fb817
Branches
Tags
No related merge requests found
......@@ -152,9 +152,9 @@ class OpenRouterLLM {
const cacheModelPath = path.resolve(cacheFolder, "models.json");
const availableModels = fs.existsSync(cacheModelPath)
? safeJsonParse(
fs.readFileSync(cacheModelPath, { encoding: "utf-8" }),
{}
)
fs.readFileSync(cacheModelPath, { encoding: "utf-8" }),
{}
)
: {};
return availableModels[modelName]?.maxLength || 4096;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment