Skip to content

fix(models): add Gemini 2.5 token limits - #1140

Open
amirshahzadhashmi7145 wants to merge 1 commit into
ScrapeGraphAI:pre/betafrom
amirshahzadhashmi7145:fix/1121-add-gemini-2.5-tokens
Open

fix(models): add Gemini 2.5 token limits#1140
amirshahzadhashmi7145 wants to merge 1 commit into
ScrapeGraphAI:pre/betafrom
amirshahzadhashmi7145:fix/1121-add-gemini-2.5-tokens

Conversation

@amirshahzadhashmi7145

Copy link
Copy Markdown

Summary

Test plan

  • uv run pytest tests/test_models_tokens.py::TestModelsTokens::test_gemini_2_5_models_are_registered -q
  • uv run black --check scrapegraphai/helpers/models_tokens.py tests/test_models_tokens.py
  • Confirm a graph with google_genai/gemini-2.5-flash and no explicit model_tokens gets model_token == 1000000 (not 8192)

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Aug 30, 2026
@amirshahzadhashmi7145
amirshahzadhashmi7145 force-pushed the fix/1121-add-gemini-2.5-tokens branch from 9e02e87 to c21af20 Compare August 30, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant