mirror of
https://github.com/Routstr/routstrd.git
synced 2026-10-05 12:28:23 +00:00
chore: release v0.4.3 — remove maxTokens from Pi model entries
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "routstrd",
|
||||
"version": "0.4.2",
|
||||
"version": "0.4.3",
|
||||
"module": "src/index.ts",
|
||||
"type": "module",
|
||||
"private": false,
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user