Skip to content

update input_too_large threshold#545

Open
GdoongMathew wants to merge 2 commits into
AsyncFuncAI:mainfrom
GdoongMathew:fix/max_token_msg
Open

update input_too_large threshold#545
GdoongMathew wants to merge 2 commits into
AsyncFuncAI:mainfrom
GdoongMathew:fix/max_token_msg

Conversation

@GdoongMathew

Copy link
Copy Markdown
Contributor

Summary

Use the predefined MAX_INPUT_TOKENS in rag.py to determine input_too_large value. (relate to #544)

update `input_too_large` threshold (#2)

(cherry picked from commit 149c6eb)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the token limit check in api/simple_chat.py by importing and using a centralized MAX_INPUT_TOKENS constant from api.rag instead of hardcoded values. There are no review comments to address, and I have no further feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant