Langchain-Chatchat icon indicating copy to clipboard operation
Langchain-Chatchat copied to clipboard

请求百川 API 时发生错误

Open tonyliu088 opened this issue 10 months ago • 2 comments

调用百川53b时候出现百川 API 时发生错误,请问怎么解决

tonyliu088 avatar Mar 28 '24 08:03 tonyliu088

嘿,@tonyliu088!又见面啦,遇到新问题了吗?希望这次我们能一起顺利解决它。

根据我在Langchain-Chatchat仓库中找到的相关问题,这个问题可能是由于BaiChuanWorker类的签名生成代码中的密钥、算法或输入数据不正确导致的。你可以检查这部分代码,确保所有的参数都是正确的。如果问题仍然存在,可能需要进一步的调试来确定问题的具体原因。

此外,你需要从百川控制台获取百川API的密钥,并在创建应用程序后将其存储在一个安全的地方,例如环境变量或加密的配置文件中。在BaiChuanWorker类的do_chat方法中需要时,从那里读取密钥。避免在代码中硬编码密钥,以防止泄露。

这是一个相关的问题链接:[BUG] 使用百川在线API,调用时显示错误

如果你能提供更多的错误信息,例如百川API返回的具体错误消息,我可能能提供更具体的帮助。

Sources

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.

dosubot[bot] avatar Mar 28 '24 08:03 dosubot[bot]

这个问题已经被标记为 stale ,因为它已经超过 30 天没有任何活动。

github-actions[bot] avatar Apr 30 '24 21:04 github-actions[bot]