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

最近通过lss233/chatgpt-mirai-qq-bot项目使用API时出现了empty text parameter #83

Open
HoshinoDesu opened this issue Nov 3, 2024 · 2 comments
Assignees

Comments

@HoshinoDesu
Copy link

这可能是什么问题导致的?是近一段时间突然出现的,在这之前调用完全正常
[GoogleGenerativeAI Error]: Error fetching from google -> [400 Bad Request] 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

@HoshinoDesu HoshinoDesu changed the title 最近通过lss233/chatgpt-mirai-qq-bot项目使用API时出现了以下报错 最近通过lss233/chatgpt-mirai-qq-bot项目使用API时出现了empty text parameter Nov 3, 2024
@zuisong
Copy link
Owner

zuisong commented Nov 3, 2024

可以附上请求参数吗?

@zuisong zuisong self-assigned this Nov 3, 2024
@HoshinoDesu
Copy link
Author

可以附上请求参数吗?

我不太熟悉这个项目,不是很清楚请求参数之类的,但是可能是和上下文有关,因为第一句可以正常回答,只要再继续问问题就报这个错误了,只能重置会话来让他可以再次回答问题
这里是这个项目的请求部分python源码,不知道这对你是否有用
https://github.com/lss233/chatgpt-mirai-qq-bot/blob/browser-version/adapter/chatgpt/api.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants