From 60b754559c53552020a20fdef1d6923408b44dc3 Mon Sep 17 00:00:00 2001 From: Youzini-afk <13153778771cx@gmail.com> Date: Wed, 8 Apr 2026 23:19:56 +0800 Subject: [PATCH] test: update llm token field assertions --- tests/llm-streaming.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/llm-streaming.mjs b/tests/llm-streaming.mjs index 97838f4..c8c44c9 100644 --- a/tests/llm-streaming.mjs +++ b/tests/llm-streaming.mjs @@ -410,7 +410,8 @@ async function testJsonRetryKeepsProfileCompletionTokens() { const snapshot = getSnapshot("extract"); assert.ok(snapshot); - assert.equal(snapshot.requestBody?.max_completion_tokens, 7777); + assert.equal(snapshot.requestBody?.max_tokens, 7777); + assert.equal(snapshot.requestBody?.max_completion_tokens, undefined); assert.equal(snapshot.filteredGeneration?.max_completion_tokens, 7777); }, );