Gemini pro return error
Self Checks
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] Pleas do not modify this template :) and fill in all the required fields.
Dify version
0.5.7
Cloud or Self Hosted
Cloud
Steps to reproduce
[Google]Error: The response,parts quick accesor only works fora single candildate, butnone were retumed.Check the response,prompt feedback to seifthe prompt was blocked.
prompt:利用已有的工具,用中文回复用户的问题,你不知道的问题请联网搜索,可以利用用duckduckgo工具联网搜索,一定要用中文回复!回复尽量简单一点避免啰嗦。
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
🤖
嘿,@XiaoCC!好久不见,希望一切顺利。🚀
感谢您的反馈。根据您提供的信息,您在使用cloud 0.5.7版本与Google Geminipro时遇到了间歇性的502 Bad Gateway错误。这通常意味着一个服务器从另一个服务器那里收到了无效的响应。
在我们的api/core/model_runtime/model_providers/google/llm/gemini-pro.yaml文件中,我们可以看到Google Geminipro在cloud 0.5.7版本中的功能描述。它是一个大型语言模型,支持"agent-thought"特性,可以处理大量的上下文信息,并且可以配置多个参数来控制模型的响应。
关于您遇到的502错误,我没有在仓库中找到具体的解决方案,但这可能是由于服务器间通信的问题。这可能是由于网络问题,或者是Google Geminipro服务暂时不可用。
在我们的api/controllers/service_api/app/error.py文件中,我们定义了一些自定义异常,这些异常在发生错误时会生成错误日志或报告。如果可能的话,您能提供一些更具体的错误日志或报告吗?这将有助于我们更好地理解和解决您遇到的问题。
再次感谢您的反馈,我们将尽力帮助您解决这个问题。
Sources
- api/core/model_runtime/model_providers/google/llm/gemini-pro.yaml
- api/controllers/service_api/app/error.py
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
What's your query to hit this error? I have no idea about how to reproduce it now, but it looks like your prompt was blocked by GeminiPro, you can check the error
but none were returned. Check the `response.prompt_feedback` to see if the prompt was blocked.
Hi! This may have been an issue on gemini's side. I suggest also follow up on that issue.
Hi, @XiaoCC,
I'm helping the team manage their backlog and am marking this issue as stale. From what I understand, you encountered a 502 Bad Gateway error when using Cloud 0.5.7 with Google Geminipro. There have been suggestions for troubleshooting and potential causes of the issue in the comments, including checking for prompt feedback and following up on a related issue in the gemini repository.
Could you please confirm if this issue is still relevant to the latest version of the repository? If it is, kindly let the team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you!