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