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.09k stars 9.85k forks source link

[Bug] unable to use steam game reviews assistant with gemini-1.5-flash or gemini-1.5-pro #3466

Closed robbiered closed 2 months ago

robbiered commented 2 months ago

📦 Environment

Docker

📌 Version

1.9.8

💻 Operating System

Other Linux

🌐 Browser

Chrome

🐛 Bug Description

get this error when using steam game reviews assistant and plugin with gemini

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

📷 Recurrence Steps

select steam game reviews assistant, try to use any text with gemini

🚦 Expected Behavior

expect it to respond without error

📝 Additional Information

No response

lobehubbot commented 2 months ago

👀 @robbiered

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

RubuJam commented 2 months ago

This is a problem with Gemini. Its function calling capability is very poor. It is recommended to use models from other providers in conjunction with this plugin

Like:

arvinxx commented 2 months ago

duplicate of https://github.com/lobehub/lobe-chat/issues/2537

lobehubbot commented 2 months ago

✅ @robbiered

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