mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(test) claude-instant-1
This commit is contained in:
parent
351c648dc0
commit
b5fcc89682
3 changed files with 5 additions and 5 deletions
|
@ -53,7 +53,7 @@ def claude_test_completion():
|
||||||
try:
|
try:
|
||||||
# OVERRIDE WITH DYNAMIC MAX TOKENS
|
# OVERRIDE WITH DYNAMIC MAX TOKENS
|
||||||
response_1 = litellm.completion(
|
response_1 = litellm.completion(
|
||||||
model="claude-instant-1",
|
model="claude-instant-1.2",
|
||||||
messages=[{"content": "Hello, how are you?", "role": "user"}],
|
messages=[{"content": "Hello, how are you?", "role": "user"}],
|
||||||
max_tokens=10,
|
max_tokens=10,
|
||||||
)
|
)
|
||||||
|
@ -63,7 +63,7 @@ def claude_test_completion():
|
||||||
|
|
||||||
# USE CONFIG TOKENS
|
# USE CONFIG TOKENS
|
||||||
response_2 = litellm.completion(
|
response_2 = litellm.completion(
|
||||||
model="claude-instant-1",
|
model="claude-instant-1.2",
|
||||||
messages=[{"content": "Hello, how are you?", "role": "user"}],
|
messages=[{"content": "Hello, how are you?", "role": "user"}],
|
||||||
)
|
)
|
||||||
# Add any assertions here to check the response
|
# Add any assertions here to check the response
|
||||||
|
@ -74,7 +74,7 @@ def claude_test_completion():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response_3 = litellm.completion(
|
response_3 = litellm.completion(
|
||||||
model="claude-instant-1",
|
model="claude-instant-1.2",
|
||||||
messages=[{"content": "Hello, how are you?", "role": "user"}],
|
messages=[{"content": "Hello, how are you?", "role": "user"}],
|
||||||
n=2,
|
n=2,
|
||||||
)
|
)
|
||||||
|
|
|
@ -933,7 +933,7 @@ def test_router_anthropic_key_dynamic():
|
||||||
{
|
{
|
||||||
"model_name": "anthropic-claude",
|
"model_name": "anthropic-claude",
|
||||||
"litellm_params": {
|
"litellm_params": {
|
||||||
"model": "claude-instant-1",
|
"model": "claude-instant-1.2",
|
||||||
"api_key": anthropic_api_key,
|
"api_key": anthropic_api_key,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ def test_router_timeouts():
|
||||||
{
|
{
|
||||||
"model_name": "anthropic-claude-instant-1.2",
|
"model_name": "anthropic-claude-instant-1.2",
|
||||||
"litellm_params": {
|
"litellm_params": {
|
||||||
"model": "claude-instant-1",
|
"model": "claude-instant-1.2",
|
||||||
"api_key": "os.environ/ANTHROPIC_API_KEY",
|
"api_key": "os.environ/ANTHROPIC_API_KEY",
|
||||||
},
|
},
|
||||||
"tpm": 20000,
|
"tpm": 20000,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue