lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.37k stars 9.94k forks source link

[Bug] Google Gemini not working #3251

Closed Igroshka closed 3 months ago

Igroshka commented 3 months ago

📦 Environment

Vercel

📌 Version

1.5.4

💻 Operating System

Windows, Ubuntu, Android, Other

🌐 Browser

Chrome, Edge

🐛 Bug Description

When trying to generate text from any Google model, errors occur. (If used in an agent. It works in “Just Let’s Chat”)

{ "error": { "message": "[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?alt=sse: [400 Bad Request] * GenerateContentRequest.tools[0].function_declarations[0].parameters.properties: should be non-empty for OBJECT type\n" }, "provider": "google" }

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

lobehubbot commented 3 months ago

👀 @Igroshka

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

wangxinqijian commented 3 months ago

👀 @Igroshka

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible. 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

试了好几个项目,应该是谷歌的问题,flash是正常的,pro有时正常有时报错

arvinxx commented 3 months ago

I think it's a google's issue, like https://github.com/lobehub/lobe-chat/issues/2537 . you can disable your plugins

lobehubbot commented 3 months ago

✅ @Igroshka

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。