Skip to content

Commit

Permalink
Unflake test (#43)
Browse files Browse the repository at this point in the history
* Unflake test

Signed-off-by: B-Step62 <[email protected]>

* lint

Signed-off-by: B-Step62 <[email protected]>

---------

Signed-off-by: B-Step62 <[email protected]>
  • Loading branch information
B-Step62 authored Dec 5, 2024
1 parent 0f4c2ef commit b1e56e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/databricks/tests/integration_tests/test_chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

from langchain_databricks.chat_models import ChatDatabricks

_TEST_ENDPOINT = "databricks-meta-llama-3-70b-instruct"
_TEST_ENDPOINT = "databricks-meta-llama-3-1-70b-instruct"


def test_chat_databricks_invoke():
Expand Down Expand Up @@ -377,8 +377,8 @@ def test_chat_databricks_langgraph():
tools = [add, multiply]

app = create_react_agent(model, tools)
response = app.invoke({"messages": [("human", "What is (10 + 5) * 3?")]})
assert "45" in response["messages"][-1].content
response = app.invoke({"messages": [("human", "What is 1 + 1")]})
assert "2" in response["messages"][-1].content


def test_chat_databricks_langgraph_with_memory():
Expand Down Expand Up @@ -409,7 +409,7 @@ def chatbot(state: State):
graph = graph_builder.compile(checkpointer=MemorySaver())

response = graph.invoke(
{"messages": [("user", "What is (10 + 5) * 3?")]},
{"messages": [("user", "What is 20 + 25?")]},
config={"configurable": {"thread_id": "1"}},
)
assert "45" in response["messages"][-1].content
Expand Down

0 comments on commit b1e56e8

Please sign in to comment.