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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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
# Use .env.local to change these variables
# DO NOT EDIT THIS FILE WITH SENSITIVE DATA

MONGODB_URL=${MONGODB_URL}
MONGODB_DB_NAME=chat-ui
MONGODB_DIRECT_CONNECTION=false


COOKIE_NAME=HuggingGPT
HF_ACCESS_TOKEN=#hf_<token> from from https://huggingface.co/settings/token

# used to activate search with web functionality. disabled if not defined
SERPAPI_KEY=#your serpapi key here

# Parameters to enable "Sign in with HF"
OPENID_CLIENT_ID=${OPENID_CLIENT_ID}
OPENID_CLIENT_SECRET=${OPENID_CLIENT_SECRET}
OPENID_SCOPES="openid profile" # Add "email" for some providers like Google that do not provide preferred_username
OPENID_PROVIDER_URL=https://huggingface.co # for Google, use https://accounts.google.com



MODELS=`[
  {
    "name": "gpt-3.5-turbo",
    "displayName": "GPT-3.5-Turbo",
    "logoUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/04/ChatGPT_logo.svg/1200px-ChatGPT_logo.svg.png",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${OPENAI_API_KEY}",
      "baseURL": "${ENDPOINT}"
    }]
  },
  {
    "name": "gpt-3.5-turbo-0613",
    "displayName": "GPT-3.5-Turbo-0613",
    "logoUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAhFBMVEUAAAD////29vZOTk4tLS1LS0spKSnc3Nz5+fn8/PzBwcHp6enz8/Pk5OTt7e3Pz89paWlWVla2traKiopiYmLJyckNDQ0gICCpqamBgYFBQUGwsLChoaHNzc3Y2Nh6eno1NTWQkJBubm4ZGRmWlpZEREQyMjIhISF9fX08PDxlZWUSEhItfJutAAAOoUlEQVR4nO1d55riOgwNoYQEmND7DG3qzvu/36UMIMmy7MQOAb57/u0OBJ+4qMtBhaKZLlc/k3HwaBhP5qtl2lT4BIRe0i17pI7oJk2BYTytlT1AD2gsYx3DZFL24DzhN2EZho++PiG6ocoweoYFekUjogzTsofkHSlm+HwELxRPDKOyR1MIoivDsFH2YApBLbwwfKZTFOLfmWFS9kgKQ3JiGO/KHkhhmMRHhtOyx1EgpgeGzecS9Ri15p7h8+7CA5I9w2c9SE/oVoJm2WMoGM3gGfU1iDRYlj2EgrEMVmUPoWCsgp+yh1Aw5sGzeC50mASP5zbMhmfn9z984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5q/5jrq59O6ItNrx8D20TXmztMbhV5KRzD97RDOut2XjePu/t4rKvbwbLfT5L+ctCt+rsA7388L8oIC9wS48AuUP24mARPIIVEzIP7cWgVg1VwXx4t/1gGQur9UyANygrQ3QrNwMfFV3eMbiV4FL9dTiR7hs1Hc4tkQa25Z+iv/usOMa0cGMaeSzPuCJP4yPCJd+KhruNYR/Gsx+kxKeDIMHzOw+bUM/5UC3P77Lhb4BQ0/6v2eUbd7c+Bea5nej6KZw/tpWIreq69WLvkdVxr0sJnOlFBbiGsunvQqIiKCaxvRHWF8fQZlmoNJ88jhpVKM3n0tdqloQPC8EAyXa7mk8dzMo4n89UyVSMj/wFZO7c5SfRtggAAAABJRU5ErkJggg==",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${OPENAI_API_KEY}",
      "baseURL": "${ENDPOINT}"
    }]
  },
  {
    "name": "gpt-3.5-turbo-0125",
    "displayName": "GPT-3.5-Turbo-0125",
    "logoUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRko-LT_4JHX2nVrtmqa4rNoVY5nZYT8IlKRw&s",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${FREEGPT_API_KEY}",
      "baseURL": "https://free.gpt.ge/v1"
    }]
  },
  {
    "name": "gpt-3.5-turbo-1106",
    "displayName": "GPT-3.5-Turbo-1106",
    "logoUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQR5OxjPZIjkJcJYBERpy1as9vm_eOrohdyEw&s",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${FREEGPT_API_KEY}",
      "baseURL": "https://free.gpt.ge/v1"
    }]
  },
  {
    "name": "net-gpt-3.5-turbo",
    "displayName": "GPT-3.5-Turbo-Browsering",
    "logoUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSOFDjKWYHuKk1c4MSfizq5pdzrohJnTfrSbA&s",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${FREEGPT_API_KEY}",
      "baseURL": "https://free.gpt.ge/v1"
    }]
  },
  {
    "name": "gpt-4-turbo",
    "displayName": "Gemini Pro",
    "logoUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABI1BMVEX///8boeM5ktpCjtdnfMxShtJGjNY4k9pMidQ+kNhWhNFjfs1agtBgf85egM9DjdeRaMBressxltxxd8krmd52dchqest8csZweMqAcMUjneGEbsSHbcN+ccWKa8IAnOKJXLwfjNiNYr7R1u5ec8n19fsAld6Vodns7vhhbsd8sOPW6Pd9ZsGz2vTl3O+2ndRwveuLyO7b0Oo/rOauktBDfM/K4PSuteB1g89Za8dMYcPCyOh6itG0vuRWcMmEk9SVp9xxkdWgqt12mtjKz+uPmdZ9o9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V6PQrHkmfR6FOpoQjVpmk4UKL2nmVRKWcPtkTrBm9T4tauUHOvxusT3pOkuhTMtEkfd6WzXnLqaEKaIaTxSePWTcLpP3k9cBtHRBJdnEvXTiGGkBxFZ7sUIIWxPMaf7NDekTv1Eh1ASJYRgJz4iCUXZhVA/kTfb4oQQBtG9DQULYSZTQIygRGhnZrpaBIQFxxRRjHZmJu+T4A7vJUWsSxuhcTJM5QyYoC+PrlF3+u4paPpQdZhUoGpv6arqKIai5RkgteMk5L2eGLRXtW1D4fIM1FHHHkKh+hlLVfsUkfdiYtFeVWyTmjYV2aSg/RbcpMCmC1a5F9Okuk3FNmlGfbSOFam/q8DpQ0HUntTSZccIoQC3MRjtm4TCjEm9MkfdvJcRoz7qxTDtt74kgY0o9DaEFVG4OalLagdeqQlbDaHqkmiTYLf2BG5KDf3bkTpz/KUgDgKpRuhEk8l86Qg4CnZK7I4G6oPABwtDe8n9c8YR6VLong3qiv+fbIxZR4IXC3iPKHixyKiPvFcQu0S8VnMqHV9rh5HIIwxDcy+H/wNdgsV4z0smaAAAAABJRU5ErkJggg==",
    "modelUrl": "https://gemini.google.com",
    "websiteUrl": "https://blog.google/technology/ai/google-gemini-ai",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${GEMINI_API_KEY}",
      "baseURL": "https://gemini-openai-proxy.deno.dev/v1"
    }]
  },
  {
    "name": "claude-3-sonnet",
    "displayName": "Claude-3-Sonnet",
    "modelUrl": "https://claude.ai",
    "websiteUrl": "https://claude.ai",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "claude-3-haiku",
    "displayName": "Claude-3-Haiku",
    "modelUrl": "https://claude.ai",
    "websiteUrl": "https://claude.ai",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "claude-instant-100k",
    "displayName": "Claude-Instant-100K",
    "modelUrl": "https://claude.ai",
    "websiteUrl": "https://claude.ai",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "claude-instant",
    "displayName": "Claude-Instant",
    "modelUrl": "https://claude.ai",
    "websiteUrl": "https://claude.ai",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "dbrx-instruct",
    "displayName": "DBRX-Instruct",
    "modelUrl": "https://huggingface.co/databricks/dbrx-instruct",
    "websiteUrl": "https://www.databricks.com/",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "llama3-70b-8192",
    "displayName": "Llama3-70B",
    "description": "Generation over generation, Meta Llama 3 demonstrates state-of-the-art performance on a wide range of industry benchmarks and offers new capabilities, including improved reasoning.",
    "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/meta-logo.png",
    "modelUrl": "https://huggingface.co/meta-llama/Meta-Llama-3-70B",
    "websiteUrl": "https://llama.meta.com/llama3",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${GROQ_API_KEY}",
      "baseURL": "https://api.groq.com/openai/v1"
    }]
  },
  {
    "name": "llama3-8b-8192",
    "displayName": "Llama3-8B",
    "description": "Generation over generation, Meta Llama 3 demonstrates state-of-the-art performance on a wide range of industry benchmarks and offers new capabilities, including improved reasoning.",
    "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/meta-logo.png",
    "modelUrl": "https://huggingface.co/meta-llama/Meta-Llama-3-8B",
    "websiteUrl": "https://llama.meta.com/llama3",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${GROQ_API_KEY}",
      "baseURL": "https://api.groq.com/openai/v1"
    }]
  },
  {
    "name": "llama2-70b-4096",
    "displayName": "Llama2-70B",
    "description": "Generation over generation, Meta Llama 2 demonstrates state-of-the-art performance on a wide range of industry benchmarks and offers new capabilities, including improved reasoning.",
    "logoUrl": "https://pl-public-data.s3.amazonaws.com/assets_lightning/Lit_LLaMA_Badge3x.png",
    "modelUrl": "https://huggingface.co/meta-llama/Llama-2-70b",
    "websiteUrl": "https://llama.meta.com/llama2",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${GROQ_API_KEY}",
      "baseURL": "https://api.groq.com/openai/v1"
    }]
  },
  {
    "name": "mixtral-8x7b-32768",
    "displayName": "Mixtral-8x7B",
    "description" : "The latest MoE model from Mistral AI! 8x7B and outperforms Llama 2 70B in most benchmarks.",
    "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/mistral-logo.png",
    "websiteUrl" : "https://mistral.ai/news/mixtral-of-experts",
    "modelUrl": "https://huggingface.co/mistralai/Mixtral-8x7B-v0.1",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${GROQ_API_KEY}",
      "baseURL": "https://api.groq.com/openai/v1"
    }]
  },
  {
    "name": "Mixtral-8x22B-Instruct-v0.1",
    "displayName": "Mixtral-8x22B",
    "description" : "The latest MoE model from Mistral AI! 8x22B and outperforms Llama 3 8B in most benchmarks.",
    "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/mistral-logo.png",
    "websiteUrl" : "https://mistral.ai/news/mixtral-of-experts",
    "modelUrl": "https://huggingface.co/mistralai/Mixtral-8x22B-v0.1",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "zephyr-orpo-141b-A35b-v0.1",
    "displayName": "Zephyr-Orpo-141B-A35B"
    "description": "Zephyr 141B-A35B is a fine-tuned version of Mistral 8x22B, trained using ORPO, a novel alignment algorithm.",
    "modelUrl": "https://huggingface.co/HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1",
    "websiteUrl": "https://huggingface.co/HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1",
    "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/zephyr-logo.png",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "gemma-7b-it",
    "displayName": "Gemma-7B-IT",
    "description": "Gemma 7B 1.1 is the latest release in the Gemma family of lightweight models built by Google, trained using a novel RLHF method.",
    "websiteUrl" : "https://blog.google/technology/developers/gemma-open-models/",
    "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/google-logo.png",
    "modelUrl": "https://huggingface.co/google/gemma-1.1-7b-it",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${GROQ_API_KEY}",
      "baseURL": "https://api.groq.com/openai/v1"
    }]
  }
]`

OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`

PUBLIC_ORIGIN=${SPACE_HOST}
PUBLIC_SHARE_PREFIX=${SPACE_HOST}/r
PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID=#UA-XXXXXXXX-X / Leave empty to disable
PUBLIC_ANNOUNCEMENT_BANNERS=`[
  {
    "title": "🦾 Claude-3-Sonnet is now available for free!",
    "linkTitle": "try it",
    "linkHref": "/chat?model=claude-3-sonnet"
  }
]`

PARQUET_EXPORT_DATASET=
PARQUET_EXPORT_HF_TOKEN=
PARQUET_EXPORT_SECRET=

PUBLIC_APP_NAME=${APP_NAME} # name used as title throughout the app
PUBLIC_APP_DESCRIPTION=We provide free access to the latest AI models. There is a possibility that some models may be temporarily unavailable, in which case please select another model.
PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
PUBLIC_APP_COLOR=${APP_COLOR} # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette
PUBLIC_APP_DATA_SHARING=1#set to 1 to enable disclaimers & options about data sharing
PUBLIC_APP_DATA_DISCLAIMER1=#set to 1 to enable disclaimers about model outputs
PUBLIC_APP_DISCLAIMER_MESSAGE="Disclaimer: AI is an area of active research with known problems such as biased generation and misinformation. Do not use this application for high-stakes decisions or advice. Do not insert your personal data, especially sensitive, like health data."