summaryrefslogtreecommitdiffstats
path: root/g4f/gui/server
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/gui/server')
-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 {