mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-04-28 03:20:01 +00:00
Backup/before cleanup 20260222 230402 (#58)
This commit is contained in:
parent
e2840095ce
commit
c4d8681000
43 changed files with 253 additions and 584 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue