From 04edb6606512172262b33859a42d132012373d88 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Thu, 19 Oct 2023 20:25:13 +0100 Subject: ~ fix gui errors on iOS --- g4f/gui/server/backend.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'g4f/gui/server') diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py index e2c445a5..ef18a61b 100644 --- a/g4f/gui/server/backend.py +++ b/g4f/gui/server/backend.py @@ -23,8 +23,17 @@ class Backend_Api: 'function': self._gen_title, 'methods': ['POST'] }, + '/backend-api/v2/error': { + 'function': self.error, + 'methods': ['POST'] + } } + def error(self): + print(request.json) + + return 'ok', 200 + def models(self): models = g4f._all_models -- cgit v1.2.3