Spaces:
Runtime error
Runtime error
Download .env.example from LeeHan23/nutribot-api: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/spaces/LeeHan23/nutribot-api/resolve/main/.env.example
- Command line
-
hf download hf://spaces/LeeHan23/nutribot-api/.env.example
-
curl -L -o .env.example https://huggingface.co/spaces/LeeHan23/nutribot-api/resolve/main/.env.example
1.18 kB
| # ------------------------------ | |
| # API KEYS & MODELS | |
| # ------------------------------ | |
| # Your secret API key from OpenAI. | |
| OPENAI_API_KEY="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
| # The model to use for the chatbot's main responses. | |
| # Options: "gpt-4-turbo", "gpt-3.5-turbo" | |
| OPENAI_MODEL="gpt-4-turbo" | |
| # The model to use for generating embeddings. | |
| # "text-embedding-3-small" is efficient and cost-effective. | |
| EMBEDDING_MODEL="text-embedding-3-small" | |
| # ------------------------------ | |
| # DATABASE & FILE PATHS | |
| # ------------------------------ | |
| # The file path for the SQLite user database. | |
| DATABASE_URL="postgresql://user:password@host:port/dbname" | |
| # The directory where persistent data (like vector stores) will be saved. | |
| # For local development, this can be the same as the local data path. | |
| PERSISTENT_DISK_PATH="./data" | |
| # ------------------------------ | |
| # SERVER CONFIGURATION | |
| # ------------------------------ | |
| # The port your FastAPI backend will run on. | |
| PORT=8000 | |
| # ------------------------------ | |
| # OPTIONAL SERVICES | |
| # ------------------------------ | |
| # If you are using Redis for session management or caching, provide the URL here. | |
| REDIS_URL="redis://localhost:6379" |