Spaces:
Sleeping
Sleeping
Update src/chat_langraph.py
Browse files- src/chat_langraph.py +4 -2
src/chat_langraph.py
CHANGED
|
@@ -218,8 +218,10 @@ def input_node(state: chatstate):
|
|
| 218 |
|
| 219 |
|
| 220 |
def llmresponse(state: chatstate):
|
| 221 |
-
response = llm.
|
| 222 |
-
|
|
|
|
|
|
|
| 223 |
|
| 224 |
|
| 225 |
def checktool(state: chatstate):
|
|
|
|
| 218 |
|
| 219 |
|
| 220 |
def llmresponse(state: chatstate):
|
| 221 |
+
response = llm.stream(state["messages"])
|
| 222 |
+
for chunk in response:
|
| 223 |
+
|
| 224 |
+
yield {"messages": [chunk]};
|
| 225 |
|
| 226 |
|
| 227 |
def checktool(state: chatstate):
|