Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Gemini API Models does not work with OpenAI compatibility #3455

Open
akhilesh-d opened this issue Feb 2, 2025 · 3 comments
Open

Google Gemini API Models does not work with OpenAI compatibility #3455

akhilesh-d opened this issue Feb 2, 2025 · 3 comments
Labels
bug-unconfirmed chat gpt4all-chat issues

Comments

@akhilesh-d
Copy link

Bug Report

Steps to Reproduce

  1. Add model in GPT4ALL with OpenAI-compatible options.
  2. Provide BASE_URL as https://generativelanguage.googleapis.com/v1beta/openai
  3. BASE MODEL as gemini-1.5-flash and a valid API KEY e.g. Azqqdfwerregb
  4. Use this model to send a question in chat
  5. No response is printed while same API call work via REST API using CURL

Expected Behavior

Your Environment

  • GPT4All version: 3.8.0
  • Operating System: Windows 11
  • Chat model used (if applicable): gemini-1.5-flash
@akhilesh-d akhilesh-d added bug-unconfirmed chat gpt4all-chat issues labels Feb 2, 2025
@isaiah2004
Copy link

can confirm the same is true with gemini 2.0 models it's for some reason not working.

@akhilesh-d
Copy link
Author

akhilesh-d commented Feb 25, 2025

after upgrade to GPT4all 3.10

ERROR: ChatAPIWorker::handleReadyRead got HTTP Error 400 Unknown error: [{
"error": {
"code": 400,
"message": "Unable to submit request because it has an empty text parameter. Add a value to the parameter and try again. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini",
"status": "INVALID_ARGUMENT"
}
}
]

@akhilesh-d
Copy link
Author

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-unconfirmed chat gpt4all-chat issues
Projects
None yet
Development

No branches or pull requests

2 participants