mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 08:33:49 +00:00
fireworks[patch]: update model used in integration tests (#29342)
No access to firefunction-v1 and -v2.
This commit is contained in:
parent
32c9c58adf
commit
86a0720310
@ -15,7 +15,7 @@ from langchain_fireworks import ChatFireworks
|
||||
def test_chat_fireworks_call() -> None:
|
||||
"""Test valid call to fireworks."""
|
||||
llm = ChatFireworks( # type: ignore[call-arg]
|
||||
model="accounts/fireworks/models/firefunction-v1", temperature=0
|
||||
model="accounts/fireworks/models/llama-v3p1-70b-instruct", temperature=0
|
||||
)
|
||||
|
||||
resp = llm.invoke("Hello!")
|
||||
@ -27,7 +27,7 @@ def test_chat_fireworks_call() -> None:
|
||||
def test_tool_choice() -> None:
|
||||
"""Test that tool choice is respected."""
|
||||
llm = ChatFireworks( # type: ignore[call-arg]
|
||||
model="accounts/fireworks/models/firefunction-v1", temperature=0
|
||||
model="accounts/fireworks/models/llama-v3p1-70b-instruct", temperature=0
|
||||
)
|
||||
|
||||
class MyTool(BaseModel):
|
||||
@ -59,7 +59,7 @@ def test_tool_choice_bool() -> None:
|
||||
"""Test that tool choice is respected just passing in True."""
|
||||
|
||||
llm = ChatFireworks( # type: ignore[call-arg]
|
||||
model="accounts/fireworks/models/firefunction-v1", temperature=0
|
||||
model="accounts/fireworks/models/llama-v3p1-70b-instruct", temperature=0
|
||||
)
|
||||
|
||||
class MyTool(BaseModel):
|
||||
|
@ -20,7 +20,7 @@ class TestFireworksStandard(ChatModelIntegrationTests):
|
||||
@property
|
||||
def chat_model_params(self) -> dict:
|
||||
return {
|
||||
"model": "accounts/fireworks/models/firefunction-v2",
|
||||
"model": "accounts/fireworks/models/llama-v3p1-70b-instruct",
|
||||
"temperature": 0,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user