XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

feat(g4f/gui/server/website.py): add redirect for /images/ endpoint

078edc6f
kqlio67 <kqlio67@users.noreply.github.com>
提交于

代码差异

1 个文件 +5 -1
Modified g4f/gui/server/website.py +5 -1
@@ -27,6 +27,10 @@ class Website:
27 27 'function': redirect_home,
28 28 'methods': ['GET', 'POST']
29 29 },
30 '/images/': {
31 'function': redirect_home,
32 'methods': ['GET', 'POST']
33 },
30 34 }
31 35
32 36 def _chat(self, conversation_id):
@@ -35,4 +39,4 @@ class Website:
35 39 return render_template('index.html', chat_id=conversation_id)
36 40
37 41 def _index(self):
38 return render_template('index.html', chat_id=str(uuid.uuid4()))
42 return render_template('index.html', chat_id=str(uuid.uuid4()))