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