From 7968ae52fb3d5540464f6fdf29350aa0dfe7e955 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 13 Jan 2024 15:56:29 +0100 Subject: Fix merge issues --- g4f/gui/server/backend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'g4f/gui/server') diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py index 3ccd1a59..9d12bea5 100644 --- a/g4f/gui/server/backend.py +++ b/g4f/gui/server/backend.py @@ -110,7 +110,8 @@ class Backend_Api: 'provider': get_last_provider(True) }) + "\n" if isinstance(chunk, Exception): - yield json.dumps({ + logging.exception(chunk) + yield json.dumps({ 'type' : 'message', 'message': get_error_message(chunk), }) + "\n" -- cgit v1.2.3