Spaces:
Sleeping
Sleeping
Download .env.local.example from lianghsun/twinkle-chat: direct link, hf CLI and curl.
- Browser
- Download file 901 Bytes
-
https://huggingface.co/spaces/lianghsun/twinkle-chat/resolve/main/.env.local.example
- Command line
-
hf download hf://spaces/lianghsun/twinkle-chat/.env.local.example
-
curl -L -o .env.local.example https://huggingface.co/spaces/lianghsun/twinkle-chat/resolve/main/.env.local.example
901 Bytes
| MONGODB_URL=mongodb://localhost:27017 | |
| PUBLIC_APP_NAME="Twinkle Chat" | |
| PUBLIC_APP_DESCRIPTION="Chat with AI models" | |
| MODELS=`[ | |
| { | |
| "name": "gemma-3-4B-T1-it", | |
| "displayName": "gemma-3-4B-T1-it", | |
| "preprompt": "", | |
| "endpoints": [ | |
| { | |
| "type": "openai", | |
| "baseURL": "https://litellm.lianghsun.dev/v1", | |
| "apiKey": "YOUR_API_KEY_HERE", | |
| "completion": "chat_completions" | |
| } | |
| ], | |
| "parameters": { | |
| "temperature": 0.7, | |
| "top_p": 0.95, | |
| "max_new_tokens": 4096 | |
| } | |
| } | |
| ]` | |
| TASK_MODEL=gemma-3-4B-T1-it | |
| SEARXNG_QUERY_URL=https://search.lianghsun.dev/search?q=<query>&engines=duckduckgo,google&format=json | |
| TEXT_EMBEDDING_MODELS=`[ | |
| { | |
| "name": "Xenova/gte-small", | |
| "displayName": "Xenova/gte-small", | |
| "chunkCharLength": 512, | |
| "endpoints": [{ "type": "transformersjs" }] | |
| } | |
| ]` | |
| WEBSEARCH_JAVASCRIPT=false | |
| WEBSEARCH_TIMEOUT=5000 | |