Skip to content

ChatVertexAI InvalidArgument Error (Gemini 2.5 Flash Model) #4733

@naveenSquareShift

Description

@naveenSquareShift

While making the LLM call from spring ai, with full prompt(system and user prompt) passed via .user(fullPrompt) facing issue like,

INVALID_ARGUMENT: Unable to submit request because it must include at least one parts field, which describes the prompt input.

This occurs because the payload for API end point is not constructed and passed properly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions