Skip to content

Commit 8d4b54f

Browse files
committed
fix(fireworks): models used in tests & naming schema
1 parent dad50e5 commit 8d4b54f

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

libs/partners/fireworks/langchain_fireworks/chat_models.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,7 @@ class ChatFireworks(BaseChatModel):
287287
```python
288288
from langchain_fireworks.chat_models import ChatFireworks
289289
290-
fireworks = ChatFireworks(
291-
model_name="accounts/fireworks/models/llama-v3p1-8b-instruct"
292-
)
290+
fireworks = ChatFireworks(model_name="fireworks/llama-v3p3-70b-instruct")
293291
```
294292
"""
295293

@@ -799,7 +797,7 @@ class AnswerWithJustification(BaseModel):
799797
800798
801799
model = ChatFireworks(
802-
model="accounts/fireworks/models/firefunction-v1",
800+
model="fireworks/llama-v3p3-70b-instruct",
803801
temperature=0,
804802
)
805803
structured_model = model.with_structured_output(AnswerWithJustification)
@@ -829,7 +827,7 @@ class AnswerWithJustification(BaseModel):
829827
830828
831829
model = ChatFireworks(
832-
model="accounts/fireworks/models/firefunction-v1",
830+
model="fireworks/llama-v3p3-70b-instruct",
833831
temperature=0,
834832
)
835833
structured_model = model.with_structured_output(
@@ -864,7 +862,7 @@ class AnswerWithJustification(TypedDict):
864862
865863
866864
model = ChatFireworks(
867-
model="accounts/fireworks/models/firefunction-v1",
865+
model="fireworks/llama-v3p3-70b-instruct",
868866
temperature=0,
869867
)
870868
structured_model = model.with_structured_output(AnswerWithJustification)
@@ -900,7 +898,7 @@ class AnswerWithJustification(TypedDict):
900898
}
901899
902900
model = ChatFireworks(
903-
model="accounts/fireworks/models/firefunction-v1",
901+
model="fireworks/llama-v3p3-70b-instruct",
904902
temperature=0,
905903
)
906904
structured_model = model.with_structured_output(oai_schema)
@@ -926,9 +924,7 @@ class AnswerWithJustification(BaseModel):
926924
justification: str
927925
928926
929-
model = ChatFireworks(
930-
model="accounts/fireworks/models/firefunction-v1", temperature=0
931-
)
927+
model = ChatFireworks(model="fireworks/llama-v3p3-70b-instruct", temperature=0)
932928
structured_model = model.with_structured_output(
933929
AnswerWithJustification, method="json_mode", include_raw=True
934930
)

libs/partners/fireworks/tests/integration_tests/test_chat_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from langchain_fireworks import ChatFireworks
1717

18-
_MODEL = "accounts/fireworks/models/llama-v3p1-8b-instruct"
18+
_MODEL = "fireworks/llama-v3p3-70b-instruct"
1919

2020

2121
def test_tool_choice_bool() -> None:
@@ -142,7 +142,7 @@ def validate_joke_dict(result: Any) -> bool:
142142

143143
@pytest.mark.parametrize("schema_type", ["pydantic", "typeddict", "json_schema"])
144144
def test_structured_output_json_schema(schema_type: str) -> None:
145-
llm = ChatFireworks(model="accounts/fireworks/models/llama-v3p1-70b-instruct")
145+
llm = ChatFireworks(model="fireworks/llama-v3p3-70b-instruct")
146146
schema, validation_function = _get_joke_class(schema_type) # type: ignore[arg-type]
147147
chat = llm.with_structured_output(schema, method="json_schema")
148148

libs/partners/fireworks/tests/integration_tests/test_llms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from langchain_fireworks import Fireworks
1313

14-
_MODEL = "accounts/fireworks/models/llama-v3p1-8b-instruct"
14+
_MODEL = "fireworks/llama-v3p3-70b-instruct"
1515

1616

1717
def test_fireworks_call() -> None:

0 commit comments

Comments
 (0)