Skip to content

[Bug] Gemini 3 Flash Preview fails with "missing thought_signature" (HTTP 400) #134

@ghost

Description

Hi! I am trying to use the new Gemini 3 Flash Preview model.

When the model tries to use a tool/function, it crashes with this error: Function call is missing a thought_signature in functionCall parts.

Reason: Gemini 3 requires that we preserve the thought and thought_signature from the model's previous response when sending the history back for a function result. It seems the bot is currently stripping this out or only saving the functionCall part.

Reference: https://ai.google.dev/gemini-api/docs/thought-signatures

Could we update the message history construction to include the thought_signature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions