From dedd53bad6a17ed9e19417777f4ab823c67ff096 Mon Sep 17 00:00:00 2001 From: X-iZhang Date: Sat, 5 Sep 2026 07:26:10 +0100 Subject: [PATCH] feat(models): add gpt-6-astra (openai + openrouter) --- EvoScientist/llm/context_window.py | 2 ++ EvoScientist/llm/registry.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/EvoScientist/llm/context_window.py b/EvoScientist/llm/context_window.py index 046a47b..c43e453 100644 --- a/EvoScientist/llm/context_window.py +++ b/EvoScientist/llm/context_window.py @@ -51,6 +51,8 @@ _KNOWN_MODEL_CONTEXT_WINDOWS: dict[str, int] = { _KNOWN_MODEL_FAMILIES: list[tuple[str, int]] = [ # All Claude — 1M via the ``context-1m-2025-08-07`` beta header. ("claude-", 1_000_000), + # OpenAI GPT-6 family — astra, astra-pro, future variants + ("gpt-6", 1_050_000), # OpenAI GPT-5.6 family — sol, terra, luna variants ("gpt-5.6", 1_050_000), # OpenAI GPT-5.5 family — base, pro, future variants diff --git a/EvoScientist/llm/registry.py b/EvoScientist/llm/registry.py index 28dd50a..030091f 100644 --- a/EvoScientist/llm/registry.py +++ b/EvoScientist/llm/registry.py @@ -93,6 +93,7 @@ _MODEL_ENTRIES: list[tuple[str, str, str]] = [ ("claude-sonnet-4-6", "claude-sonnet-4-6", "anthropic"), ("claude-haiku-4-5", "claude-haiku-4-5", "anthropic"), # OpenAI + ("gpt-6-astra", "gpt-6-astra", "openai"), ("gpt-5.6-sol", "gpt-5.6-sol", "openai"), ("gpt-5.6-terra", "gpt-5.6-terra", "openai"), ("gpt-5.6-luna", "gpt-5.6-luna", "openai"), @@ -172,6 +173,7 @@ _MODEL_ENTRIES: list[tuple[str, str, str]] = [ ("claude-opus-4.8-fast", "anthropic/claude-opus-4.8-fast", "openrouter"), ("claude-sonnet-5", "anthropic/claude-sonnet-5", "openrouter"), ("claude-sonnet-4.6", "anthropic/claude-sonnet-4.6", "openrouter"), + ("gpt-6-astra", "openai/gpt-6-astra", "openrouter"), ("gpt-5.6-sol", "openai/gpt-5.6-sol", "openrouter"), ("gpt-5.6-terra", "openai/gpt-5.6-terra", "openrouter"), ("gpt-5.6-luna", "openai/gpt-5.6-luna", "openrouter"),