-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.py
246 lines (242 loc) · 8.22 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
import os
from dotenv import load_dotenv
load_dotenv()
models = {
"text_models": {
"bard": {
"name": "bard",
"showname": "Bard",
"description": "The Google Bard model, connected to the internet.",
"type": "bard",
"key": os.environ['BARD_KEY'],
"enabled": True,
},
"gpt3": {
"name": "text-davinci-003",
"showname": "GPT-3",
"description": "OpenAI\'s older language model. Follows instructions well. Completion model only.",
"type": "openai-completions",
"url": "https://api.hypere.app/v1",
"key": os.environ['FOX_KEY'],
"enabled": True,
},
"chatgpt": {
"name": "gpt-3.5-turbo",
"showname": "ChatGPT",
"description": "The normal and cheapest OpenAI language model.",
"type": "openai",
"url": "https://chimeragpt.adventblocks.cc/api/v1",
"key": os.environ['CHIMERA_KEY'],
"enabled": False,
},
"vicuna": {
"name": "fastervicuna_13b",
"showname": "Vicuna",
"description": "A open-source language model with 90% of the quality of ChatGPT quality.",
"type": "replicate",
"url": "3a6afcc1c17c0384a559d6238b0fcac2483589aa689cee6abec98b1ddc648578",
"key": os.environ['REPLICATE_TOKEN'],
"enabled": True,
},
"alpaca": {
"name": "alpace-13b",
"showname": "Alpaca",
"description": "A model fine-tuned from LLaMA on instruction-following demonstrations by Stanford.",
"type": "openai",
"url": "https://api.pawan.krd/v1",
"key": os.environ['PAWAN_KEY'],
"enabled": True,
},
"koala": {
"name": "koala-13b",
"showname": "Koala",
"description": "A dialogue model for academic research by BAIR.",
"type": "openai",
"url": "https://api.pawan.krd/v1",
"key": os.environ['PAWAN_KEY'],
"enabled": True,
},
"llama": {
"name": "llama13b-v2-chat",
"showname": "LLaMa 2",
"description": "A open and foundational language model by Meta, current best open source model.",
"type": "replicate",
"url": "df7690f1994d94e96ad9d568eac121aecf50684a0b0963b25a41cc40061269e5",
"key": os.environ['REPLICATE_TOKEN'],
"enabled": True,
},
"openAssistant": {
"name": "oasst-pythia-12b",
"showname": "Open Assistant",
"description": "An Open Assistant for everyone by LAION.",
"type": "openai",
"url": "https://api.pawan.krd/v1",
"key": os.environ['PAWAN_KEY'],
"enabled": True,
},
"fastchat": {
"name": "fastchat-t5-3b",
"showname": "FastChat",
"type": "openai",
"description": "Another model",
"url": "https://api.pawan.krd/v1",
"key": os.environ['PAWAN_KEY'],
"enabled": True,
},
"claude": {
"name": "claude-2",
"showname": "Claude 2",
"type": "openai",
"description": "Anthropics Claude 2 model with 100k tokens of context.",
"url": "https://chimeragpt.adventblocks.cc/api/v1",
"key": os.environ['CHIMERA_KEY'],
"enabled": False,
},
"dolly": {
"name": "dolly",
"showname": "Dolly",
"type": "replicate",
"description": "Another model",
"url": "ef0e1aefc61f8e096ebe4db6b2bacc297daf2ef6899f0f7e001ec445893500e5",
"key": os.environ['REPLICATE_TOKEN'],
"enabled": True
},
"stablelm": {
"name": "stablelm",
"showname": "StableLM",
"type": "replicate",
"description": "Another model",
"url": "c49dae362cbaecd2ceabb5bd34fdb68413c4ff775111fea065d259d577757beb",
"key": os.environ['REPLICATE_TOKEN'],
"enabled": True,
},
"falcon": {
"name": "falcon-40b-instruct",
"showname": "Falcon 40b",
"description": "One of the best opensource LLMs, incredibly slow.",
"type": "replicate",
"url": "7eb0f4b1ff770ab4f68c3a309dd4984469749b7323a3d47fd2d5e09d58836d3c",
"key": os.environ['REPLICATE_TOKEN'],
"enabled": True,
},
},
"img_models": {
"bing": {
"showname": "Bing Image Creator",
"id": "bing",
"description": "Bing's image creator based on Dall-e 2.",
"enabled": True,
},
"kandinsky": {
"showname": "Kandinsky",
"id": "kandinsky-r",
"description": "A multilingual text2image latent diffusion model.",
"enabled": True,
},
"if": {
"showname": "Deepfloyd IF",
"id": "if",
"description": "A state-of-the-art text-to-image synthesis model, very good at text.",
"enabled": True,
},
"imaginePy": {
"showname": "ImaginePy",
"description": "Unknown",
"enabled": False,
},
"stable diffusion 1.5": {
"showname": "Stable Diffusion 1.5",
"id": "sd15",
"description": "High-Resolution Image Synthesis with Latent Diffusion Models.",
"enabled": True,
},
"stable diffusion 2.1": {
"showname": "Stable Diffusion 2.1",
"id": "sd21",
"description": "High-Resolution Image Synthesis with Latent Diffusion Models.",
"enabled": True,
},
"dreamshaper": {
"showname": "Dreamshaper",
"id": "dreamshaper",
"description": "A high qaulity, stable diffusion based, model.",
"enabled": True,
},
"deliberate": {
"showname": "Deliberate",
"id": "deliberate",
"description": "Stable diffusion based model, good at details.",
"enabled": True,
},
"SDXL": {
"showname": "SDXL",
"id": "sdxl",
"description": "SDXL is a text-to-image generative AI model that creates beautiful images.",
"enabled": True,
},
},
"audio_models": {
"riffusion": {
"showname": "Riffusion",
"description": "Low quality music generator using stable diffusion.",
"enabled": True,
},
"audioldm": {
"showname": "AudioLDM",
"description": "High quality audio generator, good for SFX.",
"enabled": True,
},
"melody": {
"showname": "Meta MusicGen",
"description": "High quality music generation model.",
"enabled": True,
},
"large": {
"showname": "Meta MusicGen Large",
"description": "Highest quality music generation model, SLOW!",
"enabled": True,
},
},
"tts_models": {
"elevenlabs": {
"showname": "Eleven Labs",
"enabled": False,
},
"google": {
"showname": "Google TTS",
"enabled": False,
},
},
"video_models": {
"xl": {
"showname": "Zeroscope XL",
"enabled": False,
"description": "A txt2vid model made for upscaling. Not recommended.",
},
"567w": {
"showname": "Zeroscope",
"enabled": True,
"description": "The best opensource txt2vid model.",
},
"potat1": {
"showname": "Potat1",
"enabled": False,
"description": "Unknown",
},
"animov-512x": {
"showname": "Animov",
"enabled": False,
"description": "Unknown",
},
},
}
default_settings = {
"last_msg": None,
"last_use": None,
"img_model": "bing",
"text_model": "bard",
"audio_model": "melody",
"tts_model": "google",
"video_model": "567w",
"context": [],
}