mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 23:13:31 +00:00
@@ -25,7 +25,7 @@ def test_prompt(model: Mixtral) -> None:
|
||||
|
||||
actual = model.invoke(messages).content # type: ignore
|
||||
expected = (
|
||||
"<s>[INST] sys-msg\nusr-msg-1 [/INST] ai-msg-1 </s> [INST] usr-msg-2 [/INST]" # noqa: E501
|
||||
"<s>[INST] sys-msg\nusr-msg-1 [/INST] ai-msg-1 </s> [INST] usr-msg-2 [/INST]"
|
||||
)
|
||||
|
||||
assert actual == expected
|
||||
|
@@ -78,7 +78,7 @@ string = "racecar"
|
||||
if string == string[::-1]:
|
||||
print(string, "is a palindrome") # noqa: T201
|
||||
else:
|
||||
print(string, "is not a palindrome")""" # noqa: T201
|
||||
print(string, "is not a palindrome")"""
|
||||
tool = PythonAstREPLTool()
|
||||
assert tool.run(program) == "racecar is a palindrome\n"
|
||||
|
||||
|
Reference in New Issue
Block a user