From 9429395030b5fc7df1251677a224c819e62d5be5 Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 1 Jan 2026 21:38:30 +0100 Subject: [PATCH] maxtokens is parsed as an int --- js/api/anthropic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/api/anthropic.js b/js/api/anthropic.js index b8c5f844..dcf438c5 100644 --- a/js/api/anthropic.js +++ b/js/api/anthropic.js @@ -93,7 +93,7 @@ export class Anthropic { let claude_body = { model: this.model, - max_tokens: this.max_tokens, + max_tokens: parseInt(this.max_tokens), system: this.system_prompt, messages: messages, stream: this.stream,