gerson
2024-07-01 87bce04d7cdf5ca427757071e7cc3b0847b64dfc
src/api/ai/chat.ts
@@ -148,28 +148,47 @@
   });
};
export const GetHistoryGroups = async (params, req: any = request) => {
export const GetHistoryGroups = async (params, req:any = request) => {
   return req({
      url: '/history/get_history_groups',
      method: 'POST',
      data: params,
      headers: {
         'Content-Type': 'application/x-www-form-urlencoded',
      },
     url: "/history/get_history_groups",
     method: "POST",
     data: params,
     headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
     },
   });
};
export const QueryHistoryGroup = async (params, req: any = request) => {
export const DeleteHistoryGroups = async (params, req:any = request) => {
   return req({
      url: '/history/query_history_detail',
      method: 'POST',
      data: params,
      headers: {
         'Content-Type': 'application/x-www-form-urlencoded',
      },
     url: "/history/delete_history_group",
     method: "POST",
     data: params,
     headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
     },
   });
};
// 获取AI对话测试例子列表
export const QueryHistoryGroup = async (params, req:any = request) => {
   return req({
     url: "/history/query_history_detail",
     method: "POST",
     data: params,
     headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
     },
   });
  };
  // 获取AI对话测试例子列表
export const getSelectSample = async (params, req: any = request) => {
   return req({
      url: '/section/get_section_sample',
@@ -179,4 +198,28 @@
         'Content-Type': 'application/x-www-form-urlencoded',
      },
   });
};
};
export const GetHistoryAnswer= async (params, req:any = request) => {
   return req({
     url: "/history/get_history_answer",
     method: "POST",
     data: params,
     headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
     },
   });
  };
  export const QueryHistoryDetail = async (params, req:any = request) => {
   return req({
     url: "/history/query_history_detail",
     method: "POST",
     data: params,
     headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
     },
   });
  };