chore: release v0.4.3 — remove maxTokens from Pi model entries

This commit is contained in:
redshift
2026-08-26 21:29:56 +01:00
parent d753e41016
commit 63380f6d09
2 changed files with 1 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "routstrd",
"version": "0.4.2",
"version": "0.4.3",
"module": "src/index.ts",
"type": "module",
"private": false,
-8
View File
@@ -10,7 +10,6 @@ type PiModelEntry = {
contextWindow?: number;
name?: string;
input?: string[];
maxTokens?: number;
// Preserve arbitrary manual fields (reasoning, thinkingLevelMap, compat, cost, etc.)
[key: string]: unknown;
};
@@ -98,13 +97,6 @@ export async function installPiIntegration(
if (mods.includes("image")) input.push("image");
entry.input = input;
const maxTokens = model.top_provider?.max_completion_tokens;
if (maxTokens !== undefined && maxTokens !== null && maxTokens > 0) {
entry.maxTokens = maxTokens;
} else {
delete entry.maxTokens;
}
return entry;
});