Compare commits

..

2 commits

Author SHA1 Message Date
50d59abf52 Merge pull request 'Fix invalid default model id' (#21) from fix/model-default-id into main
Reviewed-on: #21
Reviewed-by: archeious <archeious@unbiasedgeek.com>
2026-04-08 21:26:05 +00:00
Jeff Smith
eb2e71835c 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>
2026-04-08 15:25:19 -06:00
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"),
) )