Compare commits
2 Commits
44a6242c5a
...
2192546ad1
| Author | SHA1 | Date |
|---|---|---|
|
|
2192546ad1 | |
|
|
59d6b2152d |
|
|
@ -4,7 +4,7 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./results:/home/appuser/app/results
|
- tradingagents_data:/home/appuser/.tradingagents
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
|
|
||||||
|
|
@ -22,7 +22,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- LLM_PROVIDER=ollama
|
- LLM_PROVIDER=ollama
|
||||||
volumes:
|
volumes:
|
||||||
- ./results:/home/appuser/app/results
|
- tradingagents_data:/home/appuser/.tradingagents
|
||||||
depends_on:
|
depends_on:
|
||||||
- ollama
|
- ollama
|
||||||
tty: true
|
tty: true
|
||||||
|
|
@ -31,4 +31,5 @@ services:
|
||||||
- ollama
|
- ollama
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
tradingagents_data:
|
||||||
ollama_data:
|
ollama_data:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
_TRADINGAGENTS_HOME = os.path.join(os.path.expanduser("~"), ".tradingagents")
|
||||||
|
|
||||||
DEFAULT_CONFIG = {
|
DEFAULT_CONFIG = {
|
||||||
"project_dir": os.path.abspath(os.path.join(os.path.dirname(__file__), ".")),
|
"project_dir": os.path.abspath(os.path.join(os.path.dirname(__file__), ".")),
|
||||||
"results_dir": os.getenv("TRADINGAGENTS_RESULTS_DIR", "./results"),
|
"results_dir": os.getenv("TRADINGAGENTS_RESULTS_DIR", os.path.join(_TRADINGAGENTS_HOME, "logs")),
|
||||||
"data_cache_dir": os.path.join(
|
"data_cache_dir": os.getenv("TRADINGAGENTS_CACHE_DIR", os.path.join(_TRADINGAGENTS_HOME, "cache")),
|
||||||
os.path.abspath(os.path.join(os.path.dirname(__file__), ".")),
|
|
||||||
"dataflows/data_cache",
|
|
||||||
),
|
|
||||||
# LLM settings
|
# LLM settings
|
||||||
"llm_provider": "openai",
|
"llm_provider": "openai",
|
||||||
"deep_think_llm": "gpt-5.4",
|
"deep_think_llm": "gpt-5.4",
|
||||||
|
|
|
||||||
|
|
@ -66,10 +66,8 @@ class TradingAgentsGraph:
|
||||||
set_config(self.config)
|
set_config(self.config)
|
||||||
|
|
||||||
# Create necessary directories
|
# Create necessary directories
|
||||||
os.makedirs(
|
os.makedirs(self.config["data_cache_dir"], exist_ok=True)
|
||||||
os.path.join(self.config["project_dir"], "dataflows/data_cache"),
|
os.makedirs(self.config["results_dir"], exist_ok=True)
|
||||||
exist_ok=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
# Initialize LLMs with provider-specific thinking configuration
|
# Initialize LLMs with provider-specific thinking configuration
|
||||||
llm_kwargs = self._get_provider_kwargs()
|
llm_kwargs = self._get_provider_kwargs()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue