netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.93k stars 1.16k forks source link

请问使用问答接口的时候history如何自动获取,手动调用问答接口没有history信息 #427

Closed xinxin12345 closed 4 months ago

xinxin12345 commented 4 months ago

Please Describe The Problem To Be Solved (Replace This Text: Please present a concise description of the problem to be addressed by this feature request. Please be clear what parts of the problem are considered to be in-scope and out-of-scope.)

(Optional): Suggest A Solution (Replace This Text: A concise description of your preferred solution. Things to address include:

If there are multiple solutions, please present each one separately. Save comparisons for the very end.)

ManjunXiong commented 4 months ago

我也发现了这个问题,目前我想的解决方法是,请求问答接口时,将history添加进去

xixihahaliu commented 4 months ago

@xinxin12345 @ManjunXiong 简单说就是把上次问答的结果主动传给问答接口的history,因为api调用都是one-time的,没办法自动获取history,手动记录手动传入就行了,history示例:[[“问题1”, “回答1”],["问题2"],“回答2”]

ManjunXiong commented 3 months ago

@xinxin12345 @ManjunXiong 简单说就是把上次问答的结果主动传给问答接口的history,因为api调用都是one-time的,没办法自动获取history,手动记录手动传入就行了,history示例:[[“问题1”, “回答1”],["问题2"],“回答2”]

谢谢