diff --git a/README.ipynb b/README.ipynb index d6ecd0e..5725e33 100644 --- a/README.ipynb +++ b/README.ipynb @@ -50,7 +50,7 @@ "\n", "Here are the tools most likely to be useful to you:\n", "- 🎯 **Forecasting Bot:** General Forecaster that integrates with the Metaculus AI benchmarking competition. You can forecast with a pre-existing bot or override the class to customize your own (without redoing all the API code, etc)\n", - "- 🔍 **Perplexity++ Smart Searcher:** An AI-powered internet-informed llm powered by Exa.ai. Its a better (but more expensive) alternative to Perplexity.ai that is configurable, more accurate, able to decide on filters, able to link to exact paragraphs, etc.\n", + "- 🔍 **Perplexity++ Smart Searcher:** An AI-powered internet-informed llm powered by Exa.ai. Its a better (but slightly more expensive) alternative to Perplexity.ai that is configurable, more accurate, able to decide on filters, able to link to exact paragraphs, etc.\n", "- 🔑 **Key Factor Analysis:** Key Factors Analysis for scoring, ranking, and prioritizing important variables in forecasting questions\n", "\n", "\n", diff --git a/forecasting_tools/ai_models/metaculus4o.py b/forecasting_tools/ai_models/metaculus4o.py index 24952fd..789123a 100644 --- a/forecasting_tools/ai_models/metaculus4o.py +++ b/forecasting_tools/ai_models/metaculus4o.py @@ -15,7 +15,7 @@ class Gpt4oMetaculusProxy(OpenAiTextToTextModel): METACULUS_TOKEN = os.getenv("METACULUS_TOKEN") _OPENAI_ASYNC_CLIENT = AsyncOpenAI( - base_url="https://www.metaculus.com/proxy/openai/v1", + base_url="https://llm-proxy.metaculus.com/proxy/openai/v1", default_headers={ "Content-Type": "application/json", "Authorization": f"Token {METACULUS_TOKEN}", diff --git a/forecasting_tools/forecasting/forecast_bots/template_bot.py b/forecasting_tools/forecasting/forecast_bots/template_bot.py index 38a5380..53bfd3b 100644 --- a/forecasting_tools/forecasting/forecast_bots/template_bot.py +++ b/forecasting_tools/forecasting/forecast_bots/template_bot.py @@ -4,6 +4,7 @@ from datetime import datetime from forecasting_tools.ai_models.ai_utils.ai_misc import clean_indents +from forecasting_tools.ai_models.claude35sonnet import Claude35Sonnet from forecasting_tools.ai_models.gpt4o import Gpt4o from forecasting_tools.ai_models.metaculus4o import Gpt4oMetaculusProxy from forecasting_tools.ai_models.perplexity import Perplexity @@ -34,9 +35,17 @@ class TemplateBot(ForecastBot): FINAL_DECISION_LLM = ( - Gpt4oMetaculusProxy(temperature=0.7) - if os.getenv("METACULUS_TOKEN") - else Gpt4o(temperature=0.7) + Gpt4o(temperature=0.7) + if os.getenv("OPENAI_API_KEY") + else ( + Gpt4oMetaculusProxy(temperature=0.7) + if os.getenv("METACULUS_TOKEN") + else ( + Claude35Sonnet(temperature=0.7) + if os.getenv("ANTHROPIC_API_KEY") + else Gpt4o(temperature=0.7) + ) + ) ) async def run_research(self, question: MetaculusQuestion) -> str: