Langchain-Chatchat icon indicating copy to clipboard operation
Langchain-Chatchat copied to clipboard

使用stream-chat函数进行流式输出的时候,能使用curl调用吗?

Open cristianohello opened this issue 1 year ago • 3 comments

为什么下面这样调用会报错???

curl -X 'POST'
'http://127.0.0.1:8000/local_doc_qa/stream-chat/baoxian_FAISS_20230602_172352'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{ "question": "卡塔尔世界杯冠军是谁", "history": [], "knowledge_base_id": "baoxian_FAISS_20230602_172352", }'

cristianohello avatar Jun 07 '23 02:06 cristianohello

自己的写的stream-chat接口吗

ywm12345 avatar Jun 07 '23 09:06 ywm12345

@ywm12345 不是,api.py自带的函数。你解决了吗?

cristianohello avatar Jun 07 '23 10:06 cristianohello

https://github.com/imClumsyPanda/langchain-ChatGLM/issues/464#issuecomment-1583922143

ucas010 avatar Jun 09 '23 03:06 ucas010