Skip to content

Commit 62b3a17

Browse files
authored
Updated asknews caching, removed minimax (#219)
1 parent f2cd3eb commit 62b3a17

4 files changed

Lines changed: 17 additions & 14 deletions

File tree

.devcontainer/postinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Install pipx (https://pipx.pypa.io/stable/installation/)
44
sudo apt update -y
5-
sudo apt install -y pipx
5+
sudo apt install -y pipx ripgrep
66

77
# Install poetry using pipx (https://python-poetry.org/docs/#installation)
88
pipx install poetry

.github/workflows/run-bot-aib-tournament.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,18 @@ jobs:
168168
INPUT_ASKNEWS_CLIENT_ID: ${{ secrets.ASKNEWS_CLIENT_ID }}
169169
INPUT_ASKNEWS_SECRET: ${{ secrets.ASKNEWS_SECRET }}
170170

171-
bot_minimax_m2_5:
172-
needs: precache_asknews
173-
uses: ./.github/workflows/run-bot-launcher.yaml
174-
with:
175-
bot_name: 'METAC_MINIMAX_M2_5'
176-
cache_key: asknews-cache-${{ github.run_id }}
177-
secrets:
178-
INPUT_METACULUS_TOKEN: ${{ secrets.METAC_MINIMAX_M2_5 }}
179-
INPUT_METACULUS_API_BASE_URL: ${{ secrets.METACULUS_API_BASE_URL }}
180-
INPUT_OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
181-
INPUT_ASKNEWS_CLIENT_ID: ${{ secrets.ASKNEWS_CLIENT_ID }}
182-
INPUT_ASKNEWS_SECRET: ${{ secrets.ASKNEWS_SECRET }}
171+
# bot_minimax_m2_5:
172+
# needs: precache_asknews
173+
# uses: ./.github/workflows/run-bot-launcher.yaml
174+
# with:
175+
# bot_name: 'METAC_MINIMAX_M2_5'
176+
# cache_key: asknews-cache-${{ github.run_id }}
177+
# secrets:
178+
# INPUT_METACULUS_TOKEN: ${{ secrets.METAC_MINIMAX_M2_5 }}
179+
# INPUT_METACULUS_API_BASE_URL: ${{ secrets.METACULUS_API_BASE_URL }}
180+
# INPUT_OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
181+
# INPUT_ASKNEWS_CLIENT_ID: ${{ secrets.ASKNEWS_CLIENT_ID }}
182+
# INPUT_ASKNEWS_SECRET: ${{ secrets.ASKNEWS_SECRET }}
183183

184184
bot_kimi_k2_5_high:
185185
needs: precache_asknews

forecasting_tools/helpers/asknews_searcher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class AskNewsSearcher:
3333
_default_model = "deepseek-basic" # NOTE: As of Feb 23rd, 2026 this routes to the best open source model available in the background (not specifcially deepseek)
3434
_default_sources = ["asknews"]
3535
_default_rate_limit = 12
36+
_default_try_cache = "1h" # Length answers from asknews are cached in case you use the same query multiple times in a row.
3637

3738
def __init__(
3839
self,
@@ -103,6 +104,7 @@ async def get_formatted_news_async(self, query: str) -> str:
103104
n_articles=6, # control the number of articles to include in the context, originally 5
104105
return_type="both",
105106
strategy="latest news", # enforces looking at the latest news only
107+
try_cache=self._default_try_cache,
106108
)
107109

108110
await asyncio.sleep(
@@ -115,6 +117,7 @@ async def get_formatted_news_async(self, query: str) -> str:
115117
n_articles=10,
116118
return_type="both",
117119
strategy="news knowledge", # looks for relevant news within the past 160 days
120+
try_cache=self._default_try_cache,
118121
)
119122

120123
hot_articles = hot_response.as_dicts

run_bots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def get_default_bot_dict() -> dict[str, RunBotConfig]: # NOSONAR
611611
timeout=1 * 60,
612612
),
613613
),
614-
"tournaments": TournConfig.aib_and_site,
614+
"tournaments": TournConfig.NONE, # Removed since it timed out the workflow a lot
615615
},
616616
"METAC_KIMI_K2_5_HIGH": {
617617
"estimated_cost_per_question": roughly_deepseek_r1_cost,

0 commit comments

Comments
 (0)