Add environment variable configuration support
- Add .env.example file with API key placeholders - Update README.md with .env file setup instructions - Add dotenv loading in main.py for environment variables 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
7bcc2cbd8a
commit
7fc9c28a94
3 files changed
+13
No files matched your search
@@ -1,6 +1,11 @@
|
||||
from tradingagents.graph.trading_graph import TradingAgentsGraph
|
||||
from tradingagents.default_config import DEFAULT_CONFIG
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Load environment variables from .env file
|
||||
load_dotenv()
|
||||
|
||||
# Create a custom config
|
||||
config = DEFAULT_CONFIG.copy()
|
||||
config["llm_provider"] = "google" # Use a different model
|
||||
|
||||
Reference in new issue
Block a user