Skip to content

Error 404 when using Gemini API with OpenAI-compatible command #341

Description

@amanshaw4511

I am attempting to use the Gemini API with OpenAI-compatible commands, but I am encountering a 404 error. Below are the details of my setup and the command I am using.

$ go run . --provider openai --model gemini-2.0-flash --url https://generativelanguage.googleapis.com/v1beta/openai/ --key <KEY> asdf
Request: https://generativelanguage.googleapis.com/v1beta/openai/ {
                "frequency_penalty": 0,
                "messages": [

                        {
                                "content": "asdf",
                                "role": "user"
                        }
                ],
                "model": "gemini-2.0-flash",
                "presence_penalty": 0,
                "stream": true,
                "temperature": 0.5,
                "top_p": 0.5
        }

Some error has occurred. Statuscode: 404

Does it support gemini?

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