-
I'm having this chatbot with function calling in streaming mode as follows. I don't know how to correctly add the final responese to the chat history.
The code will cause this exception:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
In C# there is an |
Beta Was this translation helpful? Give feedback.
-
Hi @longpk, in Python, we have the following auto function calling concept sample script that shows how to handle streaming messages, and adding them to the chat history when done. You can see in the |
Beta Was this translation helpful? Give feedback.
Hi @longpk, in Python, we have the following auto function calling concept sample script that shows how to handle streaming messages, and adding them to the chat history when done. You can see in the
async def handle_streaming(...)
method, that we build up theresult_content
list, if applicable, and then join those items once the method is done.semantic-kernel/python/samples/concepts/auto_function_calling/chat_gpt_api_function_calling.py
Line 120 in 9d4966a