mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-25 21:37:20 +00:00
.
This commit is contained in:
@@ -388,6 +388,8 @@ def test_cache_with_generation_objects() -> None:
|
|||||||
result2 = model.generate_response("test prompt")
|
result2 = model.generate_response("test prompt")
|
||||||
assert result2.generations[0].message.content == "hello"
|
assert result2.generations[0].message.content == "hello"
|
||||||
assert isinstance(result2.generations[0], ChatGeneration)
|
assert isinstance(result2.generations[0], ChatGeneration)
|
||||||
|
|
||||||
|
|
||||||
def test_cleanup_serialized() -> None:
|
def test_cleanup_serialized() -> None:
|
||||||
cleanup_serialized = {
|
cleanup_serialized = {
|
||||||
"lc": 1,
|
"lc": 1,
|
||||||
|
Reference in New Issue
Block a user