Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions forecasting_tools/forecast_bots/forecast_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,16 +957,18 @@ def _llm_config_defaults(cls) -> dict[str, str | GeneralLlm | None]:
- etc.
"""

if os.getenv("OPENAI_API_KEY"):
main_default_llm = GeneralLlm(model="gpt-6-sol", temperature=None)
elif os.getenv("ANTHROPIC_API_KEY"):
if os.getenv("ANTHROPIC_API_KEY"):
main_default_llm = GeneralLlm(
model="anthropic/claude-sonnet-5-5", temperature=0.3
model="anthropic/claude-opus-5-5", temperature=0.3, timeout=160
)
elif os.getenv("OPENROUTER_API_KEY"):
main_default_llm = GeneralLlm(
model="openrouter/openai/gpt-6-sol", temperature=None
model="openrouter/anthropic/claude-opus-5.5",
temperature=0.3,
timeout=160,
)
elif os.getenv("OPENAI_API_KEY"):
main_default_llm = GeneralLlm(model="gpt-6-sol", temperature=None)
elif os.getenv("METACULUS_TOKEN"):
main_default_llm = GeneralLlm(model="metaculus/gpt-6-sol", temperature=None)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class FallTemplateBot2026(ForecastBot):
...
llms={ # choose your model names or GeneralLlm llms here, otherwise defaults will be chosen for you
"default": GeneralLlm(
model="openrouter/openai/gpt-6-sol", # "anthropic/claude-sonnet-4-20250514", etc (see docs for litellm)
model="openrouter/anthropic/claude-opus-5.5", # "openai/gpt-6-sol", etc (see docs for litellm)
temperature=0.3,
timeout=160,
allowed_tries=2,
Expand Down Expand Up @@ -713,7 +713,7 @@ def _get_conditional_disclaimer_if_necessary(
extra_metadata_in_explanation=True,
# llms={ # choose your model names or GeneralLlm llms here, otherwise defaults will be chosen for you
# "default": GeneralLlm(
# model="openrouter/openai/gpt-6-sol", # "anthropic/claude-sonnet-4-20250514", etc (see docs for litellm)
# model="openrouter/anthropic/claude-opus-5.5", # "openai/gpt-6-sol", etc (see docs for litellm)
# temperature=0.3,
# timeout=160,
# allowed_tries=2,
Expand Down
Loading