Upload .env.example with huggingface_hub
Browse files- .env.example +42 -0
.env.example
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# StoryBox Environment Configuration
|
| 2 |
+
# Copy this file to .env and fill in your API keys:
|
| 3 |
+
# cp .env.example .env
|
| 4 |
+
|
| 5 |
+
# ---------------------------------------------------------------------------
|
| 6 |
+
# LLM Provider (openai | ollama | mlx | nim | huggingface)
|
| 7 |
+
# ---------------------------------------------------------------------------
|
| 8 |
+
STORYBOX_PROVIDER=ollama
|
| 9 |
+
STORYBOX_MODEL=llama3.1:8b
|
| 10 |
+
STORYBOX_TEMPERATURE=0.8
|
| 11 |
+
STORYBOX_MAX_TOKENS=8000
|
| 12 |
+
|
| 13 |
+
# ---------------------------------------------------------------------------
|
| 14 |
+
# NVIDIA NIM (cloud GPU inference)
|
| 15 |
+
# Get your key at: https://build.nvidia.com/explore/discover
|
| 16 |
+
# Free tier: 40 requests/minute (rate limiting auto-enabled)
|
| 17 |
+
# ---------------------------------------------------------------------------
|
| 18 |
+
NIM_API_KEY=nvapi-your-key-here
|
| 19 |
+
# NIM_BASE_URL=https://integrate.api.nvidia.com/v1
|
| 20 |
+
|
| 21 |
+
# ---------------------------------------------------------------------------
|
| 22 |
+
# OpenAI
|
| 23 |
+
# ---------------------------------------------------------------------------
|
| 24 |
+
OPENAI_API_KEY=sk-your-key-here
|
| 25 |
+
# OPENAI_BASE_URL=https://api.openai.com/v1
|
| 26 |
+
|
| 27 |
+
# ---------------------------------------------------------------------------
|
| 28 |
+
# Ollama (local inference)
|
| 29 |
+
# ---------------------------------------------------------------------------
|
| 30 |
+
OLLAMA_BASE_URL=http://localhost:11434
|
| 31 |
+
|
| 32 |
+
# ---------------------------------------------------------------------------
|
| 33 |
+
# HuggingFace
|
| 34 |
+
# ---------------------------------------------------------------------------
|
| 35 |
+
HF_TOKEN=hf_your-token-here
|
| 36 |
+
HF_MODEL_NAME=mistralai/Mistral-7B-Instruct-v0.3
|
| 37 |
+
|
| 38 |
+
# ---------------------------------------------------------------------------
|
| 39 |
+
# Multilingual Output
|
| 40 |
+
# ---------------------------------------------------------------------------
|
| 41 |
+
STORYBOX_LANGUAGE=en
|
| 42 |
+
STORYBOX_MULTILINGUAL_MODE=native
|