mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-10 06:18:59 +08:00
fix: return message error in blocking mode (#657)
This commit is contained in:
parent
ba3dc8cae0
commit
538e3fc256
@ -390,7 +390,7 @@ class CompletionService:
|
||||
result = json.loads(result)
|
||||
if result.get('error'):
|
||||
cls.handle_error(result)
|
||||
|
||||
if '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…
x
Reference in New Issue
Block a user