diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2023-10-19 21:25:13 +0200 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2023-10-19 21:25:13 +0200 |
commit | 04edb6606512172262b33859a42d132012373d88 (patch) | |
tree | b7f8ce9e0a28f2972fab317fdb9df59e6065d0c7 /g4f/gui/server | |
parent | ~ (diff) | |
download | gpt4free-04edb6606512172262b33859a42d132012373d88.tar gpt4free-04edb6606512172262b33859a42d132012373d88.tar.gz gpt4free-04edb6606512172262b33859a42d132012373d88.tar.bz2 gpt4free-04edb6606512172262b33859a42d132012373d88.tar.lz gpt4free-04edb6606512172262b33859a42d132012373d88.tar.xz gpt4free-04edb6606512172262b33859a42d132012373d88.tar.zst gpt4free-04edb6606512172262b33859a42d132012373d88.zip |
Diffstat (limited to 'g4f/gui/server')
-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 |