NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] Adding Custom Endpoint, Azure, Breaks default Google Gemini

Open jalkestrup opened this issue 1 year ago • 2 comments

Describe the bug Adding a custom endpoint (Azure) breaks the Google Gemini model endpoint.

I have added a GOOGLE_API_KEY to my Vercel deployment. After deployment, the gemini-pro chat works as expected.

If I then add a custom endpoint via the GUI by going to settings, setting up Azure Endpoint, API key, API version and giving the model endpoint a custom name, this new model endpoints work. But now the gemini-pro does not work, and returns "Empty response" after a while. I have attempted to relaunch Vercel app, clear cookies etc., the problem repeats.

To Reproduce Steps to reproduce the behavior:

  1. Set GOOGLE_API_KEY in vercel environment, deploy app
  2. Check that gemini-pro works in chat UI
  3. Go to settings, set up custom endpoint (Azure in this case)
  4. Try to chat to gemini-pro in chat UI again, it now fails.

Expected behavior Adding a custom Azure endpoint should not affect the gemini-pro model

Screenshots image

Deployment

  • [ ] Docker
  • [ X ] Vercel
  • [ ] Server

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [Chrome]
  • Version [Forked and deployed on latest version per 13/2/2024]

Additional Logs Add any logs about the problem here.

jalkestrup avatar Feb 14 '24 16:02 jalkestrup

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] Adding Custom Endpoint, Azure, Breaks default Google Gemini

Issues-translate-bot avatar Feb 14 '24 16:02 Issues-translate-bot

Screenshot of custom endpoint settings in GUI: image

jalkestrup avatar Feb 14 '24 17:02 jalkestrup