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

XFEstudio/gpt4free

Update backend.py, index.html, requirements.txt (#1180)

* Update backend.py change to the model that received from user interactive from the web interface model selection. * Update index.html added Llama2 as a provider selection and also include the model selection for Llama2: llama2-70b, llama2-13b, llama2-7b * Update requirements.txt add asgiref to enable async for Flask in api. "RuntimeError: Install Flask with the 'async' extra in order to use async views"

b8a3db52
hdsz25 <hdsz25@hotmail.com>
提交于

代码差异

3 个文件 +8 -7
Modified g4f/gui/client/html/index.html +5 -5
@@ -130,9 +130,9 @@
130 130 <option value="google-bard">google-bard</option>
131 131 <option value="google-palm">google-palm</option>
132 132 <option value="bard">bard</option>
133 <option value="falcon-40b">falcon-40b</option>
134 <option value="falcon-7b">falcon-7b</option>
135 <option value="llama-13b">llama-13b</option>
133 <option value="llama2-7b">llama2-7b</option>
134 <option value="llama2-13b">llama2-13b</option>
135 <option value="llama2-70b">llama2-70b</option>
136 136 <option value="command-nightly">command-nightly</option>
137 137 <option value="gpt-neox-20b">gpt-neox-20b</option>
138 138 <option value="santacoder">santacoder</option>
@@ -188,7 +188,7 @@
188 188 <option value="g4f.Provider.Aibn">Aibn</option>
189 189 <option value="g4f.Provider.Bing">Bing</option>
190 190 <option value="g4f.Provider.You">You</option>
191 <option value="g4f.Provider.H2o">H2o</option>
191 <option value="g4f.Provider.Llama2">Llama2</option>
192 192 <option value="g4f.Provider.Aivvm">Aivvm</option>
193 193 </select>
194 194 </div>
@@ -203,4 +203,4 @@
203 203 </script>
204 204 </body>
205 205
206 </html>
206 </html>
Modified g4f/gui/server/backend.py +1 -1
@@ -56,7 +56,7 @@ class Backend_Api:
56 56
57 57 def stream():
58 58 yield from g4f.ChatCompletion.create(
59 model=g4f.models.gpt_35_long,
59 model=model,
60 60 provider=get_provider(provider),
61 61 messages=messages,
62 62 stream=True,
Modified requirements.txt +2 -1
@@ -18,4 +18,5 @@ loguru
18 18 tiktoken
19 19 pillow
20 20 platformdirs
21 numpy
21 numpy
22 asgiref