mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-15 08:53:53 +08:00
...
This commit is contained in:
parent
c6eb64f79d
commit
8a601877d8
@ -79,7 +79,7 @@ class gptcommon(basetrans):
|
|||||||
try:
|
try:
|
||||||
json_data = json.loads(response_data)
|
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:
|
if not msg:
|
||||||
continue
|
continue
|
||||||
message += msg
|
message += msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user