Skip to content

Configs not persisting #2

@mpetruc

Description

@mpetruc

Hi,
TradingAgend-gui was installed and started with uv:

git clone https://github.com/TheLocalLab/TradingAgents-GUI
cd TradingAgents-GUI
uv venv --python 3.12
uv pip install -e .
uv run python -m gui.app

Upon starting, an empty .env file is created in the TradingAgents-GUI folder.
In the Configuration section of the GUI, a custom Ollama Server URL is configured and 2 Custom Model Strings added. Click "Save Configuration" ->
"Configuration saved — will be loaded on next restart".
However:

  • the configuration does NOT get saved. The .enf file is not updated, still empty (0Kb).
  • When the page is reloaded, or the gui.app restarted, the custom config is gone, - the default Ollama url is shown.

I modified the .env.example file and created the .env file manually. Saved it everywhere i could thing of: TradingAgents-GUI, TradingAgents-GUI\gui, TradingAgents-GUI\cli, %USERPROFILE%.tradingagents, still nothing, the custom config does not get loaded. Here's my .env:

OLLAMA_BASE_URL=http://192.168.3.146:8080/v1

# Optional: override DEFAULT_CONFIG without editing code.
# Any TRADINGAGENTS_* variable below, when set, replaces the matching key
# in tradingagents/default_config.py. Values are coerced to the type of
# the existing default (bool / int / str), so "true"/"3" work as expected.
TRADINGAGENTS_LLM_PROVIDER=openai
TRADINGAGENTS_DEEP_THINK_LLM=gemma-4-31B-it-NVFP4-c131k-p8-vllm:thinking
TRADINGAGENTS_QUICK_THINK_LLM=gemma-4-31B-it-NVFP4-c131k-p8-vllm:thinking
TRADINGAGENTS_LLM_BACKEND_URL=http://192.168.3.146/8080/v1
#TRADINGAGENTS_OUTPUT_LANGUAGE=English
#TRADINGAGENTS_MAX_DEBATE_ROUNDS=1
#TRADINGAGENTS_MAX_RISK_ROUNDS=1
TRADINGAGENTS_CHECKPOINT_ENABLED=false

I can keep entering the info manually every time i start the app. However it would be nice not having to do so and just load it for the .env. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions