mirror of
https://github.com/JackHopkins/factorio-learning-environment.git
synced 2025-09-06 13:23:58 +00:00

* first iteration * change to support openai api endpoints * Refactor APIFactory to use OpenAI-compatible endpoints - Unified all providers to use OpenAI client format - Eliminated provider-specific conditional branches - Simplified provider detection using dict ordering - Removed unused parameters and added missing return - 90% reduction in code complexity * Further simplify APIFactory - Remove redundant MODELS_WITH_IMAGE_SUPPORT array - Use provider config supports_images instead - Inline _prepare_messages logic - Extract _get_reasoning_length helper - Add missing default return - 20+ line reduction while maintaining functionality * removecomment * Inline reasoning length logic - Remove _get_reasoning_length helper method - Inline reasoning effort logic in o1/o3 handling - Keep code simpler and more direct * add provider sorting for openrouter to get fastest throughput * add nitro * add usage tracking * usage * undo changes that added logging * update config paths * remove offset * offset * Aug 20, 2025 at 20:25 * fix run_idx port offset * make sure there is keyerror if no port * fix
33 lines
839 B
Bash
33 lines
839 B
Bash
OPENAI_API_KEY=XXX
|
|
DEEPSEEK_API_KEY=XXX
|
|
DB_PASSWORD=XXX
|
|
ANTHROPIC_API_KEY=XXX
|
|
NEPTUNE_API_TOKEN=XXX
|
|
CLUSTER_NAME=XXX
|
|
GEMINI_API_KEY=XXX
|
|
TOGETHER_API_KEY=XXX
|
|
DEEPSEEK_API_KEY=XXX
|
|
OPEN_ROUTER_API_KEY=XXX
|
|
|
|
# Database Configuration
|
|
# Options: "sqlite" (default) or "postgres"
|
|
FLE_DB_TYPE="sqlite"
|
|
|
|
# SQLite Configuration (used when FLE_DB_TYPE=sqlite or as fallback)
|
|
# If not set, defaults to .fle/data.db
|
|
SQLITE_DB_FILE=".fle/data.db"
|
|
# Offset for the port of the Factorio server when running multiple shells
|
|
PORT_OFFSET=0
|
|
|
|
# PostgreSQL Configuration (only needed when FLE_DB_TYPE=postgres)
|
|
SKILLS_DB_HOST=XXX
|
|
SKILLS_DB_PORT=XXX
|
|
SKILLS_DB_NAME=XXX
|
|
SKILLS_DB_USER=XXX
|
|
SKILLS_DB_PASSWORD=XXX
|
|
|
|
# AWS credentials if wanting to use Cloudformation, NOT REQUIRED
|
|
AWS_SECRET_ACCESS_KEY=<KEY>
|
|
AWS_ACCESS_KEY_ID=""
|
|
AWS_DEFAULT_REGION=""
|
|
CLUSTER_NAME="" |