From 81d0fcd7ceef4aa5acd0964dd9e90201f63f1366 Mon Sep 17 00:00:00 2001 From: Tomas Rychlik Date: Mon, 21 Oct 2024 14:53:52 +0200 Subject: [PATCH 1/2] fix openAIbody.max_tokens removal when -1 --- src/getOpenAIBody.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/getOpenAIBody.ts b/src/getOpenAIBody.ts index af8155c..ffe7010 100644 --- a/src/getOpenAIBody.ts +++ b/src/getOpenAIBody.ts @@ -68,7 +68,7 @@ export function getOpenAIBody( if (parsedBody.max_tokens || completionArgs.max_tokens) { openAIbody.max_tokens = parsedBody.max_tokens ?? completionArgs.max_tokens - if (parsedBody.max_tokens === -1) { + if (openAIbody.max_tokens === -1) { delete openAIbody.max_tokens } } From 14331f44c2ca07521965af567102ceab148d7b6e Mon Sep 17 00:00:00 2001 From: Tomas Rychlik Date: Mon, 21 Oct 2024 14:54:43 +0200 Subject: [PATCH 2/2] 0.13.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4f9efb2..f0e5256 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "langtail", - "version": "0.13.2", + "version": "0.13.3", "description": "", "main": "./Langtail.js", "packageManager": "pnpm@8.15.6",