mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-15 00:43:59 +08:00
...
This commit is contained in:
parent
c6eb64f79d
commit
8a601877d8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user