diff --git a/README.md b/README.md index 90dbf11f3..57465c839 100644 --- a/README.md +++ b/README.md @@ -275,14 +275,14 @@ Language model sampling is non-deterministic. Even at a fixed temperature, provi Live data moves. News, StockTwits, and Reddit return different content as time passes, so a run today sees different inputs than a run last week even for the same historical trade date. Pin the analysis date to hold the price and indicator window fixed, but the social and news sources still reflect "now". -To reduce variation you can lower the sampling temperature. Set `temperature` in your config (or `TRADINGAGENTS_TEMPERATURE` in `.env`); lower values make models that honor it more repeatable. Reasoning models largely ignore temperature, so for tighter reproducibility pair a low temperature with a non-reasoning model such as `gpt-4.1`. +To reduce variation you can lower the sampling temperature. Set `temperature` in your config (or `TRADINGAGENTS_TEMPERATURE` in `.env`); lower values make models that honor it more repeatable. The current curated models are reasoning-first and largely ignore temperature, so for tighter reproducibility use a non-reasoning model, which you can set explicitly via the Custom model ID option. ```python config = DEFAULT_CONFIG.copy() config["llm_provider"] = "openai" -config["deep_think_llm"] = "gpt-4.1" # non-reasoning model honors temperature -config["quick_think_llm"] = "gpt-4.1" config["temperature"] = 0.0 +# Reasoning models ignore temperature. For tighter reproducibility, set a +# non-reasoning deep/quick model explicitly (e.g. via the Custom model ID option). ``` What does not vary anymore: the analyzed company identity is resolved deterministically from the ticker before any agent runs, and the market analyst grounds exact price and indicator claims in a verified data snapshot. Earlier reports of "different companies" or fabricated price levels across runs are addressed by these two mechanisms. diff --git a/scripts/smoke_structured_output.py b/scripts/smoke_structured_output.py index 73b7e8f47..f225381f9 100644 --- a/scripts/smoke_structured_output.py +++ b/scripts/smoke_structured_output.py @@ -31,12 +31,12 @@ from tradingagents.llm_clients import create_llm_client PROVIDER_DEFAULTS = { "openai": ("gpt-5.4-mini", None), - "google": ("gemini-2.5-flash", None), + "google": ("gemini-3.5-flash", None), "anthropic": ("claude-sonnet-4-6", None), - "deepseek": ("deepseek-chat", None), - "qwen": ("qwen-plus", None), + "deepseek": ("deepseek-v4-flash", None), + "qwen": ("qwen3.7-plus", None), "glm": ("glm-5", None), - "xai": ("grok-4", None), + "xai": ("grok-4.3", None), }