fix zhipuAI stream issue (#825)

### What problem does this PR solve?


### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
KevinHuSh
2024-05-17 17:07:33 +08:00
committed by GitHub
parent 081f922ee6
commit f6a599461f
3 changed files with 5 additions and 4 deletions

View File

@ -162,7 +162,7 @@ def completion():
return resp
else:
ans = chat(dia, msg, False, **req)
ans = chat(dia, msg, **req)
fillin_conv(ans)
ConversationService.update_by_id(conv.id, conv.to_dict())
return get_json_result(data=ans)