可信代码库-FollowupQuestions接口改造
This commit is contained in:
@@ -514,11 +514,13 @@ const fetchFollowupQuestions = async (question,df_id,sql_id='') => {
|
|||||||
// 构造请求参数(需根据实际文档补充 df_id 和 sql_id,示例中使用空字符串占位)
|
// 构造请求参数(需根据实际文档补充 df_id 和 sql_id,示例中使用空字符串占位)
|
||||||
let params = {
|
let params = {
|
||||||
question,
|
question,
|
||||||
|
sql:'',
|
||||||
df_id: df_id || '', // 使用当前会话ID,若无则为空
|
df_id: df_id || '', // 使用当前会话ID,若无则为空
|
||||||
sql_id: sql_id || '' // 同上
|
sql_id: sql_id || '' // 同上
|
||||||
};
|
};
|
||||||
if (question?.sql) {
|
if (question?.sql) {
|
||||||
params.question = question.question
|
params.question = question.question
|
||||||
|
params.sql = question?.sql || ''
|
||||||
}
|
}
|
||||||
// const response = await axios.post(
|
// const response = await axios.post(
|
||||||
// `${VITE_AI_API_HOST}/api/v0/provide_followup_questions`,
|
// `${VITE_AI_API_HOST}/api/v0/provide_followup_questions`,
|
||||||
|
|||||||
Reference in New Issue
Block a user