Skip to content

Commit bfb9da9

Browse files
committed
fix: use maxTokens in generateTextProps
Ensure that the maxTokens config option is actually used in the text generation by adding it to the generateTextProps object in toolAgentCore.ts
1 parent b461d3b commit bfb9da9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/agent/src/core/toolAgent/toolAgentCore.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const toolAgent = async (
6666
const generateTextProps = {
6767
model: config.model,
6868
temperature: config.temperature,
69+
maxTokens: config.maxTokens,
6970
messages: messagesWithCacheControl,
7071
tools: toolSet,
7172
};

0 commit comments

Comments
 (0)