Update gptcommon.py

This commit is contained in:
恍兮惚兮 2024-08-31 21:51:42 +08:00
parent c79847c6cd
commit c92f8dcdf5

View File

@ -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")