返回提交历史
Modified
README.md
+0
-3
Modified
etc/testing/test_chat_completion.py
+1
-1
Modified
g4f/Provider/__init__.py
+0
-1
Renamed
g4f/Provider/deprecated/Aivvm.py
+3
-5
Modified
g4f/Provider/deprecated/__init__.py
+2
-1
Modified
g4f/models.py
+10
-14
XFEstudio/gpt4free
Remove Aivvm from working providers
3430b04f
代码差异
6 个文件
+16
-25
@@ -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` | ✔️ | ❌ | ✔️ | ✔️ |  | ❌ |
372
370
| [chat-gpt.org](https://chat-gpt.org/chat) | `g4f.Provider.Aichat` | ✔️ | ❌ | ❌ | ✔️ |  | ❌ |
373
371
| [ai.ls](https://ai.ls) | `g4f.Provider.Ails` | ✔️ | ❌ | ✔️ | ✔️ |  | ❌ |
374
| [chat.aivvm.com](https://chat.aivvm.com) | `g4f.Provider.Aivvm` | ✔️ | ✔️ | ✔️ | ❌ |  | ❌ |
375
372
| [bard.google.com](https://bard.google.com) | `g4f.Provider.Bard` | ❌ | ❌ | ❌ | ✔️ |  | ✔️ |
376
373
| [bing.com](https://bing.com/chat) | `g4f.Provider.Bing` | ❌ | ✔️ | ✔️ | ✔️ |  | ❌ |
377
374
| [www.chatbase.co](https://www.chatbase.co) | `g4f.Provider.ChatBase` | ✔️ | ✔️ | ✔️ | ✔️ |  | ❌ |
@@ -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)
@@ -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
@@ -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
@@ -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
@@ -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',