From 76083c5a1755bcbc59318b7116b32d2f89b14c80 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:27:29 +0100 Subject: ~ --- g4f/gui/server/backend.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'g4f') 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 { -- cgit v1.2.3