Fix invalid default model id (#15)

Both the MCP server and WebResearcher defaulted to
claude-sonnet-4-5-20250514, which 404s against the Anthropic API.
Update both defaults to claude-sonnet-4-6, which is current as of
2026-04.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jeff Smith 2026-04-08 15:25:19 -06:00
parent c19a161a62
commit eb2e71835c
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ class WebResearcher:
self, self,
anthropic_api_key: str, anthropic_api_key: str,
tavily_api_key: str, tavily_api_key: str,
model_id: str = "claude-sonnet-4-5-20250514", model_id: str = "claude-sonnet-4-6",
trace_dir: Optional[str] = None, trace_dir: Optional[str] = None,
): ):
self.client = Anthropic(api_key=anthropic_api_key) self.client = Anthropic(api_key=anthropic_api_key)

View file

@ -40,7 +40,7 @@ def _get_researcher() -> WebResearcher:
return WebResearcher( return WebResearcher(
anthropic_api_key=_read_secret("ANTHROPIC_API_KEY"), anthropic_api_key=_read_secret("ANTHROPIC_API_KEY"),
tavily_api_key=_read_secret("TAVILY_API_KEY"), tavily_api_key=_read_secret("TAVILY_API_KEY"),
model_id=os.environ.get("MARCHWARDEN_MODEL", "claude-sonnet-4-5-20250514"), model_id=os.environ.get("MARCHWARDEN_MODEL", "claude-sonnet-4-6"),
) )