diff options
Diffstat (limited to 'g4f/gui/server/backend.py')
-rw-r--r-- | g4f/gui/server/backend.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 |