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:
parent
c19a161a62
commit
eb2e71835c
2 changed files with 2 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ class WebResearcher:
|
|||
self,
|
||||
anthropic_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,
|
||||
):
|
||||
self.client = Anthropic(api_key=anthropic_api_key)
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ def _get_researcher() -> WebResearcher:
|
|||
return WebResearcher(
|
||||
anthropic_api_key=_read_secret("ANTHROPIC_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"),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue