AchyuthGamer
commited on
Commit
•
6d6f36c
1
Parent(s):
f856f87
Update g4f/models.py
Browse files- g4f/models.py +210 -6
g4f/models.py
CHANGED
@@ -9,22 +9,226 @@ class Model:
|
|
9 |
|
10 |
class gpt_35_turbo:
|
11 |
name: str = 'gpt-3.5-turbo'
|
12 |
-
base_provider: str = '
|
13 |
-
best_provider: Provider.Provider = Provider.
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
class gpt_35_turbo_0301:
|
16 |
name: str = 'gpt-3.5-turbo-0301'
|
17 |
base_provider: str = 'openai'
|
18 |
-
best_provider: Provider.Provider = Provider.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
class falcon_40b:
|
21 |
name: str = 'falcon-40b'
|
22 |
-
base_provider: str = '
|
|
|
|
|
|
|
|
|
|
|
23 |
best_provider: Provider.Provider = Provider.H2o
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
class ModelUtils:
|
26 |
convert: dict = {
|
27 |
'gpt-3.5-turbo': Model.gpt_35_turbo,
|
|
|
28 |
'gpt-3.5-turbo-0301': Model.gpt_35_turbo_0301,
|
29 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
|
|
|
9 |
|
10 |
class gpt_35_turbo:
|
11 |
name: str = 'gpt-3.5-turbo'
|
12 |
+
base_provider: str = 'openai'
|
13 |
+
best_provider: Provider.Provider = Provider.Wewordle
|
14 |
+
|
15 |
+
class gpt_35_turbo_0613:
|
16 |
+
name: str = 'gpt-3.5-turbo-0613'
|
17 |
+
base_provider: str = 'openai'
|
18 |
+
best_provider: Provider.Provider = Provider.Zeabur
|
19 |
|
20 |
class gpt_35_turbo_0301:
|
21 |
name: str = 'gpt-3.5-turbo-0301'
|
22 |
base_provider: str = 'openai'
|
23 |
+
best_provider: Provider.Provider = Provider.Zeabur
|
24 |
+
|
25 |
+
class gpt_35_turbo_16k_0613:
|
26 |
+
name: str = 'gpt-3.5-turbo-16k-0613'
|
27 |
+
base_provider: str = 'openai'
|
28 |
+
best_provider: Provider.Provider = Provider.Zeabur
|
29 |
+
|
30 |
+
class gpt_35_turbo_16k:
|
31 |
+
name: str = 'gpt-3.5-turbo-16k'
|
32 |
+
base_provider: str = 'openai'
|
33 |
+
best_provider: Provider.Provider = Provider.ChatFree
|
34 |
+
|
35 |
+
class gpt_4_dev:
|
36 |
+
name: str = 'gpt-4-for-dev'
|
37 |
+
base_provider: str = 'openai'
|
38 |
+
best_provider: Provider.Provider = Provider.Phind
|
39 |
+
|
40 |
+
class gpt_4:
|
41 |
+
name: str = 'gpt-4'
|
42 |
+
base_provider: str = 'openai'
|
43 |
+
best_provider: Provider.Provider = Provider.ChatgptAi
|
44 |
+
|
45 |
+
class gpt_4_0613:
|
46 |
+
name: str = 'gpt-4-0613'
|
47 |
+
base_provider: str = 'openai'
|
48 |
+
best_provider: Provider.Provider = Provider.Lockchat
|
49 |
+
best_providers: list = [Provider.Bing, Provider.Lockchat]
|
50 |
+
|
51 |
+
class claude_instant_v1_100k:
|
52 |
+
name: str = 'claude-instant-v1-100k'
|
53 |
+
base_provider: str = 'anthropic'
|
54 |
+
best_provider: Provider.Provider = Provider.Vercel
|
55 |
+
|
56 |
+
class claude_instant_v1:
|
57 |
+
name: str = 'claude-instant-v1'
|
58 |
+
base_provider: str = 'anthropic'
|
59 |
+
best_provider: Provider.Provider = Provider.Vercel
|
60 |
+
|
61 |
+
class claude_v1_100k:
|
62 |
+
name: str = 'claude-v1-100k'
|
63 |
+
base_provider: str = 'anthropic'
|
64 |
+
best_provider: Provider.Provider = Provider.Vercel
|
65 |
+
|
66 |
+
class claude_v1:
|
67 |
+
name: str = 'claude-v1'
|
68 |
+
base_provider: str = 'anthropic'
|
69 |
+
best_provider: Provider.Provider = Provider.Vercel
|
70 |
+
|
71 |
+
class alpaca_7b:
|
72 |
+
name: str = 'alpaca-7b'
|
73 |
+
base_provider: str = 'replicate'
|
74 |
+
best_provider: Provider.Provider = Provider.Vercel
|
75 |
+
|
76 |
+
class stablelm_tuned_alpha_7b:
|
77 |
+
name: str = 'stablelm-tuned-alpha-7b'
|
78 |
+
base_provider: str = 'replicate'
|
79 |
+
best_provider: Provider.Provider = Provider.Vercel
|
80 |
+
|
81 |
+
class bloom:
|
82 |
+
name: str = 'bloom'
|
83 |
+
base_provider: str = 'huggingface'
|
84 |
+
best_provider: Provider.Provider = Provider.Vercel
|
85 |
+
|
86 |
+
class bloomz:
|
87 |
+
name: str = 'bloomz'
|
88 |
+
base_provider: str = 'huggingface'
|
89 |
+
best_provider: Provider.Provider = Provider.Vercel
|
90 |
+
|
91 |
+
class flan_t5_xxl:
|
92 |
+
name: str = 'flan-t5-xxl'
|
93 |
+
base_provider: str = 'huggingface'
|
94 |
+
best_provider: Provider.Provider = Provider.Vercel
|
95 |
+
|
96 |
+
class flan_ul2:
|
97 |
+
name: str = 'flan-ul2'
|
98 |
+
base_provider: str = 'huggingface'
|
99 |
+
best_provider: Provider.Provider = Provider.Vercel
|
100 |
+
|
101 |
+
class gpt_neox_20b:
|
102 |
+
name: str = 'gpt-neox-20b'
|
103 |
+
base_provider: str = 'huggingface'
|
104 |
+
best_provider: Provider.Provider = Provider.Vercel
|
105 |
+
|
106 |
+
class oasst_sft_4_pythia_12b_epoch_35:
|
107 |
+
name: str = 'oasst-sft-4-pythia-12b-epoch-3.5'
|
108 |
+
base_provider: str = 'huggingface'
|
109 |
+
best_provider: Provider.Provider = Provider.Vercel
|
110 |
+
|
111 |
+
class santacoder:
|
112 |
+
name: str = 'santacoder'
|
113 |
+
base_provider: str = 'huggingface'
|
114 |
+
best_provider: Provider.Provider = Provider.Vercel
|
115 |
+
|
116 |
+
class command_medium_nightly:
|
117 |
+
name: str = 'command-medium-nightly'
|
118 |
+
base_provider: str = 'cohere'
|
119 |
+
best_provider: Provider.Provider = Provider.Vercel
|
120 |
+
|
121 |
+
class command_xlarge_nightly:
|
122 |
+
name: str = 'command-xlarge-nightly'
|
123 |
+
base_provider: str = 'cohere'
|
124 |
+
best_provider: Provider.Provider = Provider.Vercel
|
125 |
+
|
126 |
+
class code_cushman_001:
|
127 |
+
name: str = 'code-cushman-001'
|
128 |
+
base_provider: str = 'openai'
|
129 |
+
best_provider: Provider.Provider = Provider.Vercel
|
130 |
+
|
131 |
+
class code_davinci_002:
|
132 |
+
name: str = 'code-davinci-002'
|
133 |
+
base_provider: str = 'openai'
|
134 |
+
best_provider: Provider.Provider = Provider.Vercel
|
135 |
+
|
136 |
+
class text_ada_001:
|
137 |
+
name: str = 'text-ada-001'
|
138 |
+
base_provider: str = 'openai'
|
139 |
+
best_provider: Provider.Provider = Provider.Vercel
|
140 |
+
|
141 |
+
class text_babbage_001:
|
142 |
+
name: str = 'text-babbage-001'
|
143 |
+
base_provider: str = 'openai'
|
144 |
+
best_provider: Provider.Provider = Provider.Vercel
|
145 |
+
|
146 |
+
class text_curie_001:
|
147 |
+
name: str = 'text-curie-001'
|
148 |
+
base_provider: str = 'openai'
|
149 |
+
best_provider: Provider.Provider = Provider.Vercel
|
150 |
+
|
151 |
+
class text_davinci_002:
|
152 |
+
name: str = 'text-davinci-002'
|
153 |
+
base_provider: str = 'openai'
|
154 |
+
best_provider: Provider.Provider = Provider.Vercel
|
155 |
+
|
156 |
+
class text_davinci_003:
|
157 |
+
name: str = 'text-davinci-003'
|
158 |
+
base_provider: str = 'openai'
|
159 |
+
best_provider: Provider.Provider = Provider.Vercel
|
160 |
+
|
161 |
+
class palm:
|
162 |
+
name: str = 'palm2'
|
163 |
+
base_provider: str = 'google'
|
164 |
+
best_provider: Provider.Provider = Provider.Bard
|
165 |
|
166 |
class falcon_40b:
|
167 |
name: str = 'falcon-40b'
|
168 |
+
base_provider: str = 'huggingface'
|
169 |
+
best_provider: Provider.Provider = Provider.H2o
|
170 |
+
|
171 |
+
class falcon_7b:
|
172 |
+
name: str = 'falcon-7b'
|
173 |
+
base_provider: str = 'huggingface'
|
174 |
best_provider: Provider.Provider = Provider.H2o
|
175 |
+
|
176 |
+
class llama_13b:
|
177 |
+
name: str = 'llama-13b'
|
178 |
+
base_provider: str = 'huggingface'
|
179 |
+
best_provider: Provider.Provider = Provider.H2o
|
180 |
+
|
181 |
+
|
182 |
class ModelUtils:
|
183 |
convert: dict = {
|
184 |
'gpt-3.5-turbo': Model.gpt_35_turbo,
|
185 |
+
'gpt-3.5-turbo-0613': Model.gpt_35_turbo_0613,
|
186 |
'gpt-3.5-turbo-0301': Model.gpt_35_turbo_0301,
|
187 |
+
'gpt-4': Model.gpt_4,
|
188 |
+
'gpt-4-0613': Model.gpt_4_0613,
|
189 |
+
'gpt-4-for-dev': Model.gpt_4_dev,
|
190 |
+
'gpt-3.5-turbo-16k': Model.gpt_35_turbo_16k,
|
191 |
+
'gpt-3.5-turbo-16k-0613': Model.gpt_35_turbo_16k_0613,
|
192 |
+
|
193 |
+
'claude-instant-v1-100k': Model.claude_instant_v1_100k,
|
194 |
+
'claude-v1-100k': Model.claude_v1_100k,
|
195 |
+
'claude-instant-v1': Model.claude_instant_v1,
|
196 |
+
'claude-v1': Model.claude_v1,
|
197 |
+
|
198 |
+
'alpaca-7b': Model.alpaca_7b,
|
199 |
+
'stablelm-tuned-alpha-7b': Model.stablelm_tuned_alpha_7b,
|
200 |
+
|
201 |
+
'bloom': Model.bloom,
|
202 |
+
'bloomz': Model.bloomz,
|
203 |
+
|
204 |
+
'flan-t5-xxl': Model.flan_t5_xxl,
|
205 |
+
'flan-ul2': Model.flan_ul2,
|
206 |
+
|
207 |
+
'gpt-neox-20b': Model.gpt_neox_20b,
|
208 |
+
'oasst-sft-4-pythia-12b-epoch-3.5': Model.oasst_sft_4_pythia_12b_epoch_35,
|
209 |
+
'santacoder': Model.santacoder,
|
210 |
+
|
211 |
+
'command-medium-nightly': Model.command_medium_nightly,
|
212 |
+
'command-xlarge-nightly': Model.command_xlarge_nightly,
|
213 |
+
|
214 |
+
'code-cushman-001': Model.code_cushman_001,
|
215 |
+
'code-davinci-002': Model.code_davinci_002,
|
216 |
+
|
217 |
+
'text-ada-001': Model.text_ada_001,
|
218 |
+
'text-babbage-001': Model.text_babbage_001,
|
219 |
+
'text-curie-001': Model.text_curie_001,
|
220 |
+
'text-davinci-002': Model.text_davinci_002,
|
221 |
+
'text-davinci-003': Model.text_davinci_003,
|
222 |
+
|
223 |
+
'palm2': Model.palm,
|
224 |
+
'palm': Model.palm,
|
225 |
+
'google': Model.palm,
|
226 |
+
'google-bard': Model.palm,
|
227 |
+
'google-palm': Model.palm,
|
228 |
+
'bard': Model.palm,
|
229 |
+
|
230 |
+
'falcon-40b': Model.falcon_40b,
|
231 |
+
'falcon-7b': Model.falcon_7b,
|
232 |
+
'llama-13b': Model.llama_13b,
|
233 |
}
|
234 |
+
|