Skip to content

配置好自定义api后运行python run.py xx_api.py,始终报json错误这是什么原因? #647

Answered by yingfhu
shensj12 asked this question in Q&A
Discussion options

You must be logged in to vote

RequestsJSONDecodeError often occurs when the responses is not complete. You can print raw_response.status_code and raw_response.text for more details。
BTW,you might want to use zhipuai_api directly. It should support chatglm models.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shensj12
Comment options

@yingfhu
Comment options

Answer selected by shensj12
@shensj12
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants