Преглед изворни кода

fix: answer returned null when response_mode was blocking (#1133)

tags/0.3.20
takatost пре 2 година
родитељ
комит
2658c4d57b
No account linked to committer's email address
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      api/services/completion_service.py

+ 1
- 1
api/services/completion_service.py Прегледај датотеку

@@ -367,7 +367,7 @@ class CompletionService:
result = json.loads(result)
if result.get('error'):
cls.handle_error(result)
if 'data' in result:
if result['event'] == 'message' and 'data' in result:
return cls.get_message_response_data(result.get('data'))
except ValueError as e:
if e.args[0] != "I/O operation on closed file.": # ignore this error

Loading…
Откажи
Сачувај