From d4ab83a45bfef2910936dcabf3f875268631e65b Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Thu, 19 Oct 2023 15:14:48 +0100 Subject: ~ automatic models fetching in GUI. --- g4f/gui/server/backend.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'g4f/gui/server') diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py index cacc57d8..714609f6 100644 --- a/g4f/gui/server/backend.py +++ b/g4f/gui/server/backend.py @@ -24,9 +24,12 @@ class Backend_Api: 'methods': ['POST'] }, } - + def models(self): - return {} + models = g4f._all_models + models.remove('oasst-sft-4-pythia-12b-epoch-3.5') + + return models def _gen_title(self): return { -- cgit v1.2.3