S0025136190 преди 9 месеца
родител
ревизия
d979ba4219
променени са 1 файла, в които са добавени 23 реда и са изтрити 23 реда
  1. 23 23
      src/apis/index.ts

+ 23 - 23
src/apis/index.ts

@@ -29,30 +29,30 @@ export type FetchAppIndexParams = {
 };
 
 export type CreateOrModifyApplicationApiParams = {
-    name: string,
-    desc: string,
-    prompt: string,
-    temperature: number,
-    top_p: number,
+    id: string,
+    name: string,  //应用名称
+    desc: string,  //应用描述
+    prompt: string, //应用提示语
+    top_p: string, //topP
+    temperature: string, //温度
     knowledge_ids: string[],
-    param_desc: string,
-    max_token: number,
-    knowledge_info: {
-        model: string,
-        knowledge_ids: string[],
-        slice_config_type: string,
-        recall_method: string,
-        slice_count: number,
-        rerank_status: number,
-        rerank_model_name: string,
-        show_recall_result: boolean,
-        recall_slice_splicing_method: string,
-    },
-    questionList: [
-        {
-            question: string,
-        }
-    ]
+    slice_count: number,
+    model: string,
+    icon_color: string,
+    icon_type: string,
+    questionList: string[],
+    // knowledge_info: {
+    //     model: string,
+    //     knowledge_ids: string[],
+    //     slice_config_type: string,
+    //     recall_method: string,
+    //     slice_count: number,
+    //     rerank_status: number,
+    //     rerank_model_name: string,
+    //     show_recall_result: boolean,
+    //     recall_slice_splicing_method: string,
+    // },
+    //questionList: string[]
 };
 
 export type FetchDocumentLibListApiParams = {