mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
fix(docs): Fix several typos and grammar (#33487)
Just typo changes Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
@@ -116,7 +116,7 @@ def test_chat_openai_streaming_generation_info() -> None:
|
||||
chat = _get_llm(max_tokens=2, temperature=0, callbacks=callback_manager)
|
||||
list(chat.stream("hi"))
|
||||
generation = callback.saved_things["generation"]
|
||||
# `Hello!` is two tokens, assert that that is what is returned
|
||||
# `Hello!` is two tokens, assert that is what is returned
|
||||
assert generation.generations[0][0].text == "Hello!"
|
||||
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ def test_chat_openai_streaming_generation_info() -> None:
|
||||
chat = ChatOpenAI(max_tokens=2, temperature=0, callbacks=callback_manager) # type: ignore[call-arg]
|
||||
list(chat.stream("hi"))
|
||||
generation = callback.saved_things["generation"]
|
||||
# `Hello!` is two tokens, assert that that is what is returned
|
||||
# `Hello!` is two tokens, assert that is what is returned
|
||||
assert generation.generations[0][0].text == "Hello!"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user