Spaces:
Sleeping
Sleeping
Chris Alexiuk
commited on
Commit
·
64044be
1
Parent(s):
a82ed0c
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ async def init():
|
|
77 |
async def main(message):
|
78 |
chain = cl.user_session.get("chain")
|
79 |
cb = cl.AsyncLangchainCallbackHandler(
|
80 |
-
stream_final_answer=
|
81 |
)
|
82 |
cb.answer_reached = True
|
83 |
res = await chain.acall(message, callbacks=[cb])
|
|
|
77 |
async def main(message):
|
78 |
chain = cl.user_session.get("chain")
|
79 |
cb = cl.AsyncLangchainCallbackHandler(
|
80 |
+
stream_final_answer=False, answer_prefix_tokens=["FINAL", "ANSWER"]
|
81 |
)
|
82 |
cb.answer_reached = True
|
83 |
res = await chain.acall(message, callbacks=[cb])
|