Skip to content

Using gemini (OpenAI compatible) don't work - "missing field message" #42

@dhnam

Description

@dhnam

As title suggests, using Gemini with OPENAI_PROXY_BASE don't work with JSONDeserialize error "Missing field `message`".

It looks like Gemini doesn't support some OpenAI feature with its OpenAI compatible API, thus giving the error.

I tried giving request to Gemini API, and this was the response.

[
  {
    "error": {
      "code": 400,
      "message": "Invalid JSON payload received. Unknown name \"web_search_options\": Cannot find field.",
      "status": "INVALID_ARGUMENT",
      "details": [
        {
          "@type": "type.googleapis.com/google.rpc.BadRequest",
          "fieldViolations": [
            {
              "description": "Invalid JSON payload received. Unknown name \"web_search_options\": Cannot find field."
            }
          ]
        }
      ]
    }
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions