fix:return conv_uid and update wechat

This commit is contained in:
aries_ckt
2024-03-21 15:59:46 +08:00
parent 0cf08f37b0
commit ab9d8a370e
3 changed files with 2 additions and 4 deletions

View File

@@ -247,7 +247,7 @@ class Client:
if response.status_code == 200:
async for line in response.aiter_lines():
try:
if line == "data: [DONE]\n":
if line.strip() == "data: [DONE]":
break
if line.startswith("data:"):
json_data = json.loads(line[len("data: ") :])