update zhipu

This commit is contained in:
binary-husky committed 2024-01-18 00:31:53 +08:00
1 parent 6f978fa72e
commit 8fe545d97b
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -37,7 +37,8 @@ class ZhipuRequestInstance():
break
else:
raise RuntimeError("Unknown error:" + str(event))
if self.result_buf == "":
yield "智谱没有返回任何数据, 请检查ZHIPUAI_API_KEY和ZHIPUAI_MODEL是否填写正确."
logging.info(f'[raw_input] {inputs}')
logging.info(f'[response] {self.result_buf}')
return self.result_buf