Ensure uniform application of trimTokens in underlying LLM calls #1657
Labels
agent-generated
For agent creation actions on pull requests, issues, and eventually milestones, releases etc.
enhancement
New feature or request
llm
Describe the bug
The trimTokens function is inconsistently applied across different underlying LLM calls, leading to errors when the context window is exceeded.
To Reproduce
Expected behavior
The trimTokens function should be uniformly applied across all LLM calls to prevent exceeding the context window and causing errors.
Additional context
Uniform application of trimTokens will help maintain consistency and avoid errors related to context window limits.
Related Issues
The text was updated successfully, but these errors were encountered: