test(fireworks): replace deprecated llama-v3p3-70b-instruct model
Fireworks removed llama-v3p3-70b-instruct from serverless, so every
live test using it now fails with NotFoundError ("Model not found,
inaccessible, and/or not deployed").
Swap the 6 references (3 files) to the currently-served
accounts/fireworks/models/deepseek-v3p1 — the canonical model in
Fireworks' current docs examples and present in LiteLLM's cost map.
test_get_model_params_fireworks_ai is a pure pricing-heuristic test
(no network) asserting the >16b branch, so it uses llama-v3p1-70b-
instruct instead to keep the "fireworks-ai-above-16b" assertion and
branch coverage intact.
This commit is contained in:
parent
11393f86f5
commit
39a1d438f2
@ -97,7 +97,7 @@ def test_document_inlining_example(disable_add_transform_inline_image_block):
|
||||
if disable_add_transform_inline_image_block is True:
|
||||
with pytest.raises(Exception):
|
||||
completion = litellm.completion(
|
||||
model="fireworks_ai/accounts/fireworks/models/llama-v3p3-70b-instruct",
|
||||
model="fireworks_ai/accounts/fireworks/models/deepseek-v3p1",
|
||||
messages=[
|
||||
{
|
||||
"role": "user",
|
||||
@ -119,7 +119,7 @@ def test_document_inlining_example(disable_add_transform_inline_image_block):
|
||||
)
|
||||
else:
|
||||
completion = litellm.completion(
|
||||
model="fireworks_ai/accounts/fireworks/models/llama-v3p3-70b-instruct",
|
||||
model="fireworks_ai/accounts/fireworks/models/deepseek-v3p1",
|
||||
messages=[
|
||||
{
|
||||
"role": "user",
|
||||
@ -215,7 +215,7 @@ def test_global_disable_flag_with_transform_messages_helper(monkeypatch):
|
||||
) as mock_post:
|
||||
try:
|
||||
completion(
|
||||
model="fireworks_ai/accounts/fireworks/models/llama-v3p3-70b-instruct",
|
||||
model="fireworks_ai/accounts/fireworks/models/deepseek-v3p1",
|
||||
messages=[
|
||||
{
|
||||
"role": "user",
|
||||
|
||||
@ -1057,7 +1057,7 @@ def test_completion_fireworks_ai():
|
||||
},
|
||||
]
|
||||
response = completion(
|
||||
model="fireworks_ai/llama-v3p3-70b-instruct",
|
||||
model="fireworks_ai/accounts/fireworks/models/deepseek-v3p1",
|
||||
messages=messages,
|
||||
)
|
||||
print(response)
|
||||
|
||||
@ -1171,7 +1171,7 @@ from litellm.llms.fireworks_ai.cost_calculator import get_base_model_for_pricing
|
||||
@pytest.mark.parametrize(
|
||||
"model, base_model",
|
||||
[
|
||||
("fireworks_ai/llama-v3p3-70b-instruct", "fireworks-ai-above-16b"),
|
||||
("fireworks_ai/llama-v3p1-70b-instruct", "fireworks-ai-above-16b"),
|
||||
],
|
||||
)
|
||||
def test_get_model_params_fireworks_ai(model, base_model):
|
||||
@ -1182,7 +1182,7 @@ def test_get_model_params_fireworks_ai(model, base_model):
|
||||
@pytest.mark.parametrize(
|
||||
"model",
|
||||
[
|
||||
"fireworks_ai/llama-v3p3-70b-instruct",
|
||||
"fireworks_ai/accounts/fireworks/models/deepseek-v3p1",
|
||||
],
|
||||
)
|
||||
def test_completion_cost_fireworks_ai(model):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user