Spaces:
Running
Running
chore: update environment variable defaults in .env.example and inference.py for clarity and consistency
Browse filesFiles changed (2)
- .env.example+4-14
- python/inference.py+2-2
3 unmodified lines4567891011121314151617181920213 unmodified lines# Mandatory hackathon secret (set this in HF Space secrets too)HF_TOKEN=your_provider_api_key_here# OpenAI-compatible endpoint (default: OpenRouter free-tier)API_BASE_URL=https://openrouter.ai/api/v1# Model to use (change to smaller model if you need lower latency/cost)MODEL_NAME=your_chosen_model_name_here# Optional: provider-specific API key fallback for developmentOPENAI_API_KEY=your_api_key_here# Environment server URL (local Docker)ENV_URL=http://localhost:7860# Inference script flags# --fast-mode : run heuristic (no LLM calls) for deterministic, instant runs# --episodes N : number of episodes per task3 unmodified lines45678910113 unmodified lines# Mandatory hackathon secret (set this in HF Space secrets too)HF_TOKEN=your_provider_api_key_here# OpenAI-compatible endpoint (required - fill with your LLM provider URL)API_BASE_URL=<your-active-endpoint># Model to use (required - fill with your model identifier)MODEL_NAME=<your-active-model>
44 unmodified lines454647484950515244 unmodified lines# ── Constants ──────────────────────────────────────────────────────────────ENV_URL = os.getenv("ENV_URL", "http://localhost:7860")MODEL_NAME = os.getenv("MODEL_NAME", "meta-llama/llama-3.3-70b-instruct:free")API_BASE_URL = os.getenv("API_BASE_URL", "https://openrouter.ai/api/v1")# ── Environment Variable Handling ─────────────────────────────────────────# The LLM API credential is read from HF_TOKEN or OPENAI_API_KEY environment variables44 unmodified lines454647484950515244 unmodified lines# ── Constants ──────────────────────────────────────────────────────────────ENV_URL = os.getenv("ENV_URL", "http://localhost:7860")MODEL_NAME = os.getenv("MODEL_NAME", "<your-active-model>")API_BASE_URL = os.getenv("API_BASE_URL", "<your-active-endpoint>")# ── Environment Variable Handling ─────────────────────────────────────────# The LLM API credential is read from HF_TOKEN or OPENAI_API_KEY environment variables
.env.example+4-14
python/inference.py+2-2