mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
core: basemessage.text() (#29078)
This commit is contained in:
@@ -228,7 +228,7 @@ class ChatOllama(BaseChatModel):
|
||||
("human", "Return the words Hello World!"),
|
||||
]
|
||||
for chunk in llm.stream(messages):
|
||||
print(chunk)
|
||||
print(chunk.text(), end="")
|
||||
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
Reference in New Issue
Block a user