mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
Update gptcommon.py
This commit is contained in:
parent
c79847c6cd
commit
c92f8dcdf5
@ -87,6 +87,8 @@ class gptcommon(basetrans):
|
||||
continue
|
||||
if response_data == "data: [DONE]":
|
||||
break
|
||||
if response_data == ": OPENROUTER PROCESSING":
|
||||
continue
|
||||
try:
|
||||
json_data = json.loads(response_data[6:])
|
||||
rs = json_data["choices"][0].get("finish_reason")
|
||||
|
Loading…
x
Reference in New Issue
Block a user