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

XFEstudio/gpt4free

~ | improved stability with gpt-3.5-turbo

improved stability with gpt-3.5-turbo

64b1583a
abc <98614666+xtekky@users.noreply.github.com>
提交于

代码差异

1 个文件 +21 -14
Modified g4f/models.py +21 -14
@@ -1,9 +1,19 @@
1 from __future__ import annotations
1 from __future__ import annotations
2 2 from dataclasses import dataclass
3 from .Provider import BaseProvider, Bard, H2o, Vercel
4 from .Provider import Aichat, Aivvm, ChatBase, ChatgptAi, ChatgptLogin, CodeLinkAva
5 from .Provider import DeepAi, Vercel, Vitalentum, Ylokh, You, Yqcloud
6 from .typing import Union
3 from .typing import Union
4 from .Provider import BaseProvider
5 from .Provider import (
6 ChatgptLogin,
7 CodeLinkAva,
8 ChatgptAi,
9 ChatBase,
10 Yqcloud,
11 Vercel,
12 DeepAi,
13 Aivvm,
14 Bard,
15 H2o
16 )
7 17
8 18 @dataclass
9 19 class Model:
@@ -14,24 +24,21 @@ class Model:
14 24 # Config for HuggingChat, OpenAssistant
15 25 # Works for Liaobots, H2o, OpenaiChat, Yqcloud, You
16 26 default = Model(
17 name="",
18 base_provider="huggingface"
19 )
27 name = "",
28 base_provider = "huggingface")
20 29
21 30 # GPT-3.5 / GPT-4
22 31 gpt_35_turbo = Model(
23 32 name = 'gpt-3.5-turbo',
24 33 base_provider = 'openai',
25 best_provider = (
26 Vercel, Aichat, Aivvm, ChatBase, ChatgptAi, ChatgptLogin,
27 CodeLinkAva, DeepAi, Vitalentum, Ylokh, You, Yqcloud
28 )
34 best_provider = [
35 Yqcloud, DeepAi, CodeLinkAva, ChatgptLogin, ChatgptAi, ChatBase, Aivvm
36 ]
29 37 )
30 38
31 39 gpt_4 = Model(
32 40 name = 'gpt-4',
33 base_provider = 'openai',
34 )
41 base_provider = 'openai')
35 42
36 43 # Bard
37 44 palm = Model(