mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-13 20:23:56 +00:00
(test) claude-instant-1
This commit is contained in:
@@ -53,7 +53,7 @@ def claude_test_completion():
|
||||
try:
|
||||
# OVERRIDE WITH DYNAMIC MAX TOKENS
|
||||
response_1 = litellm.completion(
|
||||
model="claude-instant-1",
|
||||
model="claude-instant-1.2",
|
||||
messages=[{"content": "Hello, how are you?", "role": "user"}],
|
||||
max_tokens=10,
|
||||
)
|
||||
@@ -63,7 +63,7 @@ def claude_test_completion():
|
||||
|
||||
# USE CONFIG TOKENS
|
||||
response_2 = litellm.completion(
|
||||
model="claude-instant-1",
|
||||
model="claude-instant-1.2",
|
||||
messages=[{"content": "Hello, how are you?", "role": "user"}],
|
||||
)
|
||||
# Add any assertions here to check the response
|
||||
@@ -74,7 +74,7 @@ def claude_test_completion():
|
||||
|
||||
try:
|
||||
response_3 = litellm.completion(
|
||||
model="claude-instant-1",
|
||||
model="claude-instant-1.2",
|
||||
messages=[{"content": "Hello, how are you?", "role": "user"}],
|
||||
n=2,
|
||||
)
|
||||
|
||||
@@ -933,7 +933,7 @@ def test_router_anthropic_key_dynamic():
|
||||
{
|
||||
"model_name": "anthropic-claude",
|
||||
"litellm_params": {
|
||||
"model": "claude-instant-1",
|
||||
"model": "claude-instant-1.2",
|
||||
"api_key": anthropic_api_key,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ def test_router_timeouts():
|
||||
{
|
||||
"model_name": "anthropic-claude-instant-1.2",
|
||||
"litellm_params": {
|
||||
"model": "claude-instant-1",
|
||||
"model": "claude-instant-1.2",
|
||||
"api_key": "os.environ/ANTHROPIC_API_KEY",
|
||||
},
|
||||
"tpm": 20000,
|
||||
|
||||
Reference in New Issue
Block a user