Skip to content

HTTP 400 when using Google/Gemini API #131

@Stihotvor

Description

@Stihotvor

First of all, thank you for creating such an amazing plugin. I have used it a lot with OpenRouter, LMStudio and Ollama integrations. Now, as Google announced new free models, I would like to test them.

Unfortunately, I can't do it due to HTTP 400 error shown every time I send a prompt to the chat box.

After some investigation, I have found the network traffic tab (Dev Console) and here is what I've seen in the response from Google:

{
  "error": {
    "code": 400,
    "message": "Unable to submit request because it has a stopSequences value of 0 but the supported range is from 1 (inclusive) to 17 (exclusive). Update the value and try again.",
    "status": "INVALID_ARGUMENT"
  }
}

I can't find this parameter in the GUI, so I suppose it should be added on the backend side.

Thanks!

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