This commit is contained in:
恍兮惚兮 2024-09-18 12:07:26 +08:00
parent c6eb64f79d
commit 8a601877d8

View File

@ -79,7 +79,7 @@ class gptcommon(basetrans):
try:
json_data = json.loads(response_data)
msg = json_data["choices"][0]["delta"].get("content", None)
msg = json_data["choices"][0].get("delta", {}).get("content", None)
if not msg:
continue
message += msg