Skip to content

Gemini API 400 error - invalid schema fields (prefill, enumTitles, $id) #23

Description

@Neelkanthsahu02

Description

When using Gemini models, getting 400 errors due to unsupported JSON schema fields:

  • prefill
  • enumTitles
  • $id

These fields need to be stripped from tool definitions before sending to Gemini API.

Image

Plugins

No response

OpenSwarm version

Latest version of Openswarm App

Steps to reproduce

  1. open openswarm
  2. choose gemini model
  3. sent any message - example " Hi "
  4. you will get the same error / bug

Screenshot and/or share link

No response

Operating System

Macos26

Terminal

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions