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

XFEstudio/gpt4free

Remove Aivvm from working providers

3430b04f
Heiner Lohaus <heiner@lohaus.eu>
提交于

代码差异

6 个文件 +16 -25
Modified README.md +0 -3
@@ -215,7 +215,6 @@ from g4f.Provider import (
215 215 Acytoo,
216 216 Aichat,
217 217 Ails,
218 Aivvm,
219 218 Bard,
220 219 Bing,
221 220 ChatBase,
@@ -278,7 +277,6 @@ import g4f, asyncio
278 277
279 278 _providers = [
280 279 g4f.Provider.Aichat,
281 g4f.Provider.Aivvm,
282 280 g4f.Provider.ChatBase,
283 281 g4f.Provider.Bing,
284 282 g4f.Provider.CodeLinkAva,
@@ -371,7 +369,6 @@ if __name__ == "__main__":
371 369 | [chat.acytoo.com](https://chat.acytoo.com) | `g4f.Provider.Acytoo` | ✔️ | ❌ | ✔️ | ✔️ | ![Active](https://img.shields.io/badge/Active-brightgreen) | ❌ |
372 370 | [chat-gpt.org](https://chat-gpt.org/chat) | `g4f.Provider.Aichat` | ✔️ | ❌ | ❌ | ✔️ | ![Unknown](https://img.shields.io/badge/Unknown-grey) | ❌ |
373 371 | [ai.ls](https://ai.ls) | `g4f.Provider.Ails` | ✔️ | ❌ | ✔️ | ✔️ | ![Active](https://img.shields.io/badge/Active-brightgreen) | ❌ |
374 | [chat.aivvm.com](https://chat.aivvm.com) | `g4f.Provider.Aivvm` | ✔️ | ✔️ | ✔️ | ❌ | ![Active](https://img.shields.io/badge/Active-brightgreen) | ❌ |
375 372 | [bard.google.com](https://bard.google.com) | `g4f.Provider.Bard` | ❌ | ❌ | ❌ | ✔️ | ![Active](https://img.shields.io/badge/Active-brightgreen) | ✔️ |
376 373 | [bing.com](https://bing.com/chat) | `g4f.Provider.Bing` | ❌ | ✔️ | ✔️ | ✔️ | ![Active](https://img.shields.io/badge/Active-brightgreen) | ❌ |
377 374 | [www.chatbase.co](https://www.chatbase.co) | `g4f.Provider.ChatBase` | ✔️ | ✔️ | ✔️ | ✔️ | ![Active](https://img.shields.io/badge/Active-brightgreen) | ❌ |
Modified etc/testing/test_chat_completion.py +1 -1
@@ -19,7 +19,7 @@ print()
19 19 async def run_async():
20 20 response = await g4f.ChatCompletion.create_async(
21 21 model=g4f.models.gpt_35_turbo_16k_0613,
22 provider=g4f.Provider.Aivvm,
22 provider=g4f.Provider.GptGod,
23 23 messages=[{"role": "user", "content": "hello!"}],
24 24 )
25 25 print("create_async:", response)
Modified g4f/Provider/__init__.py +0 -1
@@ -6,7 +6,6 @@ from .Aichat import Aichat
6 6 from .Ails import Ails
7 7 from .AItianhu import AItianhu
8 8 from .AItianhuSpace import AItianhuSpace
9 from .Aivvm import Aivvm
10 9 from .Bing import Bing
11 10 from .ChatBase import ChatBase
12 11 from .ChatForAi import ChatForAi
Renamed g4f/Provider/deprecated/Aivvm.py +3 -5
@@ -1,8 +1,8 @@
1 1 from __future__ import annotations
2 2
3 from ..requests import StreamSession
4 from .base_provider import AsyncGeneratorProvider
5 from ..typing import AsyncGenerator
3 from ...requests import StreamSession
4 from ..base_provider import AsyncGeneratorProvider
5 from ...typing import AsyncGenerator
6 6
7 7 # to recreate this easily, send a post request to https://chat.aivvm.com/api/models
8 8 models = {
@@ -18,8 +18,6 @@ models = {
18 18
19 19 class Aivvm(AsyncGeneratorProvider):
20 20 url = 'https://chat.aivvm.com'
21 supports_stream = True
22 working = True
23 21 supports_gpt_35_turbo = True
24 22 supports_gpt_4 = True
25 23
Modified g4f/Provider/deprecated/__init__.py +2 -1
@@ -11,4 +11,5 @@ from .Equing import Equing
11 11 from .Wuguokai import Wuguokai
12 12 from .V50 import V50
13 13 from .FastGpt import FastGpt
14 from .ChatgptLogin import ChatgptLogin
14 from .ChatgptLogin import ChatgptLogin
15 from .Aivvm import Aivvm
Modified g4f/models.py +10 -14
@@ -20,7 +20,6 @@ from .Provider import (
20 20 DeepAi,
21 21 Aichat,
22 22 AiAsk,
23 Aivvm,
24 23 GptGo,
25 24 Ylokh,
26 25 Bard,
@@ -44,7 +43,7 @@ default = Model(
44 43 Yqcloud, # Answers short questions in chinese
45 44 ChatBase, # Don't want to answer creatively
46 45 ChatgptDuo, # Include search results
47 Aibn, Aichat, Aivvm, ChatForAi, ChatgptAi, ChatgptLogin, DeepAi, FreeGpt, GptGo, Myshell, Ylokh,
46 Aibn, Aichat, ChatForAi, ChatgptAi, ChatgptLogin, DeepAi, FreeGpt, GptGo, Myshell, Ylokh,
48 47 ])
49 48 )
50 49
@@ -53,7 +52,7 @@ gpt_35_long = Model(
53 52 name = 'gpt-3.5-turbo',
54 53 base_provider = 'openai',
55 54 best_provider = RetryProvider([
56 AiAsk, Aibn, Aichat, Aivvm, ChatForAi, ChatgptAi, ChatgptDemo, ChatgptDuo,
55 AiAsk, Aibn, Aichat, ChatForAi, ChatgptAi, ChatgptDemo, ChatgptDuo,
57 56 FreeGpt, GptGo, Liaobots, Myshell, Vitalentum, Ylokh, You, Yqcloud
58 57 ])
59 58 )
@@ -63,7 +62,7 @@ gpt_35_turbo = Model(
63 62 name = 'gpt-3.5-turbo',
64 63 base_provider = 'openai',
65 64 best_provider = RetryProvider([
66 DeepAi, ChatgptLogin, ChatgptAi, Aivvm, GptGo, AItianhu, Aichat, AItianhuSpace, Myshell, Aibn, ChatForAi, FreeGpt, Ylokh
65 DeepAi, ChatgptLogin, ChatgptAi, GptGo, AItianhu, Aichat, AItianhuSpace, Myshell, Aibn, ChatForAi, FreeGpt, Ylokh
67 66 ])
68 67 )
69 68
@@ -167,26 +166,23 @@ gpt_35_turbo_16k_0613 = Model(
167 166
168 167 gpt_35_turbo_0613 = Model(
169 168 name = 'gpt-3.5-turbo-0613',
170 base_provider = 'openai',
171 best_provider = RetryProvider([
172 Aivvm, ChatgptLogin
173 ])
169 base_provider = 'openai'
174 170 )
175 171
176 172 gpt_4_0613 = Model(
177 173 name = 'gpt-4-0613',
178 base_provider = 'openai',
179 best_provider = Aivvm)
174 base_provider = 'openai'
175 )
180 176
181 177 gpt_4_32k = Model(
182 178 name = 'gpt-4-32k',
183 base_provider = 'openai',
184 best_provider = Aivvm)
179 base_provider = 'openai'
180 )
185 181
186 182 gpt_4_32k_0613 = Model(
187 183 name = 'gpt-4-32k-0613',
188 base_provider = 'openai',
189 best_provider = Aivvm)
184 base_provider = 'openai'
185 )
190 186
191 187 text_ada_001 = Model(
192 188 name = 'text-ada-001',