返回提交历史
Modified
g4f/gui/server/website.py
+5
-1
XFEstudio/gpt4free
feat(g4f/gui/server/website.py): add redirect for /images/ endpoint
078edc6f
代码差异
1 个文件
+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()))