From 63380f6d09a3bf4dff3bcf78ace4c5d419180a34 Mon Sep 17 00:00:00 2001 From: redshift <213178690+1ftredsh@users.noreply.github.com> Date: Wed, 26 Aug 2026 21:29:56 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20release=20v0.4.3=20=E2=80=94=20remove?= =?UTF-8?q?=20maxTokens=20from=20Pi=20model=20entries?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/integrations/pi.ts | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/package.json b/package.json index 5d64143..4d14886 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "routstrd", - "version": "0.4.2", + "version": "0.4.3", "module": "src/index.ts", "type": "module", "private": false, diff --git a/src/integrations/pi.ts b/src/integrations/pi.ts index 314b524..2eaf36c 100644 --- a/src/integrations/pi.ts +++ b/src/integrations/pi.ts @@ -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; });