Skip to content

[Bug]: google provider doesn't allow any requests pro 3 and 3.1 #57

@Hexdigest123

Description

@Hexdigest123

Description

Hi, I assume there was an update either to this repository or to some Google policy again, because since today I can’t access Google models at all.

I’m getting the following error:

Bad Request: [{
  "error": {
    "code": 400,
    "message": "Unable to submit request because `edit` functionDeclaration `parameters.edits` schema specified other fields alongside any_of. When using any_of, it must be the only field set. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling",
    "errors": [
      {
        "message": "Unable to submit request because `edit` functionDeclaration `parameters.edits` schema specified other fields alongside any_of. When using any_of, it must be the only field set. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling",
        "domain": "global",
        "reason": "badRequest"
      }
    ],
    "status": "INVALID_ARGUMENT"
  }
}]

Reproduction Steps

Steps to reproduce the behavior:

  1. Open opencode
  2. Select gemini-3-pro-preview or gemini-3.1-pro-preview
  3. Run any prompt i did test
  4. See error

Expected Behavior

Should not crash

Actual Behavior

Error being raised

Opencode Information

  • Opencode Type: cli
  • Opencode Version: 1.2.6

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