Backup/before cleanup 20260222 230402 (#58)

This commit is contained in:
Ali Khokhar 2026-02-27 19:50:21 -08:00 committed by GitHub
parent e2840095ce
commit c4d8681000
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 253 additions and 584 deletions

View file

@ -25,18 +25,6 @@ def test_messages_request_map_model_claude_to_default(mock_settings):
assert request.original_model == "claude-3-opus"
def test_messages_request_map_model_non_claude_unchanged(mock_settings):
with patch("api.models.anthropic.get_settings", return_value=mock_settings):
request = MessagesRequest(
model="gpt-4",
max_tokens=100,
messages=[Message(role="user", content="hello")],
)
# normalize_model_name returns original if not Claude
assert request.model == "gpt-4"
def test_messages_request_map_model_with_provider_prefix(mock_settings):
with patch("api.models.anthropic.get_settings", return_value=mock_settings):
request = MessagesRequest(