zhu327 / gemini-openai-proxy

A proxy for converting the OpenAI API protocol to the Google Gemini Pro protocol.
MIT License
554 stars 101 forks source link

Error 429 #21

Closed bestpika closed 7 months ago

bestpika commented 7 months ago

Hello, I found that any call returns error 400 without making any modifications to the program, and the message is 429. But when I directly call the Gemini Pro API with the Gemini Pro data format, it works fine. I originally thought it was an incorrect key, but intentionally changed the key to the wrong one, and got the message Error 400.

The following is the data for when I called.

{
  "stream":false,
  "model":"gpt-3.5-turbo",
  "messages":[
  {
    "role":"user",
    "content":"HELLO"
  }]
}
{
  "code": 400,
  "message": "genai send message error: googleapi: Error 429:",
  "type": ""
}
bestpika commented 7 months ago

I found that I am running into an overall usage limit. If I change the model to v1beta, I can bypass this limit. Is there a way to make this modification?

zhu327 commented 7 months ago

try zhu327/gemini-openai-proxy:v1beta

bestpika commented 7 months ago

Hello, I'm not using Docker. Is there a parameter that can switch to v1beta when compiling into an executable file?

zhu327 commented 7 months ago

Hello, I'm not using Docker. Is there a parameter that can switch to v1beta when compiling into an executable file?

It is suggested to copy the binary from the docker container