fix(agent): update error message for unsupported Anthropic API endpoints to clarify usage of OpenRouter

This commit is contained in:
teknium1 2026-02-27 23:23:31 -08:00
parent 2bc9508b7c
commit 50cb4d5fc7
3 changed files with 9 additions and 7 deletions

View file

@ -285,7 +285,7 @@ class TestInit:
patch("run_agent.check_toolset_requirements", return_value={}),
patch("run_agent.OpenAI") as mock_openai,
):
with pytest.raises(ValueError, match="Anthropic /v1/messages is not supported yet"):
with pytest.raises(ValueError, match="not supported yet"):
AIAgent(
api_key="test-key-1234567890",
base_url="https://api.anthropic.com/v1/messages",