在使用 astream_chat
得到输出的流信息后,使用 for 循环调用,有如下提示结果:
'async_generator' object is not iterable
在 for 循环前面添加 async
解决了这个问题
async for item in chat_response_gen:
ret_param = {
'intent_type': 0,<
在使用 astream_chat
得到输出的流信息后,使用 for 循环调用,有如下提示结果:
'async_generator' object is not iterable
在 for 循环前面添加 async
解决了这个问题
async for item in chat_response_gen:
ret_param = {
'intent_type': 0,<