summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorabc <98614666+xtekky@users.noreply.github.com>2023-10-19 15:27:29 +0200
committerabc <98614666+xtekky@users.noreply.github.com>2023-10-19 15:27:29 +0200
commit76083c5a1755bcbc59318b7116b32d2f89b14c80 (patch)
tree5d1ed8c1acac973f2bbacbddd3d99ca119c6d05c /g4f
parent~ | Merge pull request #1101 from suravkshrestha/patch1 (diff)
downloadgpt4free-76083c5a1755bcbc59318b7116b32d2f89b14c80.tar
gpt4free-76083c5a1755bcbc59318b7116b32d2f89b14c80.tar.gz
gpt4free-76083c5a1755bcbc59318b7116b32d2f89b14c80.tar.bz2
gpt4free-76083c5a1755bcbc59318b7116b32d2f89b14c80.tar.lz
gpt4free-76083c5a1755bcbc59318b7116b32d2f89b14c80.tar.xz
gpt4free-76083c5a1755bcbc59318b7116b32d2f89b14c80.tar.zst
gpt4free-76083c5a1755bcbc59318b7116b32d2f89b14c80.zip
Diffstat (limited to 'g4f')
-rw-r--r--g4f/gui/server/backend.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py
index 79fcd836..cacc57d8 100644
--- a/g4f/gui/server/backend.py
+++ b/g4f/gui/server/backend.py
@@ -11,6 +11,10 @@ class Backend_Api:
def __init__(self, app) -> None:
self.app = app
self.routes = {
+ '/backend-api/v2/models': {
+ 'function': self.models,
+ 'methods' : ['GET']
+ },
'/backend-api/v2/conversation': {
'function': self._conversation,
'methods': ['POST']
@@ -20,6 +24,9 @@ class Backend_Api:
'methods': ['POST']
},
}
+
+ def models(self):
+ return {}
def _gen_title(self):
return {