Skip to content

VertexAI: Gemini 3 or 2.5 Pro or Flash , do they have input tokens limit? #6336

@XinyueZ

Description

@XinyueZ

google/adk-python#4470

googleapis/python-genai#2050

I don't know when it started, it should have been fine last week. Today, the same project, nothing has changed, and it suddenly started throwing errors.

{'error': {'code': 400, 'message': 'The input token count (25270) exceeds the maximum number of tokens allowed (4000).', 'status': 'INVALID_ARGUMENT'}}

I worked with the RAG Engine and Document AI. The 2.5 stuffs function normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: vertex-aiIssues related to the googleapis/python-aiplatform API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions