@@ -14,7 +14,8 @@ Object.defineProperty(prefix, 'value', {
14
14
} )
15
15
/**
16
16
* 获取全部应用
17
- * @param 参数
17
+ * @param param
18
+ * @param loading
18
19
*/
19
20
const getAllApplication : ( param ?: any , loading ?: Ref < boolean > ) => Promise < Result < any [ ] > > = (
20
21
param ,
@@ -39,7 +40,8 @@ const getApplication: (
39
40
40
41
/**
41
42
* 创建应用
42
- * @param 参数
43
+ * @param data
44
+ * @param loading
43
45
*/
44
46
const postApplication : (
45
47
data : ApplicationFormType ,
@@ -50,7 +52,9 @@ const postApplication: (
50
52
51
53
/**
52
54
* 修改应用
53
- * @param 参数
55
+ * @param application_id
56
+ * @param data
57
+ * @param loading
54
58
*/
55
59
const putApplication : (
56
60
application_id : string ,
@@ -62,7 +66,8 @@ const putApplication: (
62
66
63
67
/**
64
68
* 删除应用
65
- * @param 参数 application_id
69
+ * @param application_id
70
+ * @param loading
66
71
*/
67
72
const delApplication : (
68
73
application_id : string ,
@@ -73,7 +78,8 @@ const delApplication: (
73
78
74
79
/**
75
80
* 应用详情
76
- * @param 参数 application_id
81
+ * @param application_id
82
+ * @param loading
77
83
*/
78
84
const getApplicationDetail : (
79
85
application_id : string ,
@@ -84,7 +90,8 @@ const getApplicationDetail: (
84
90
85
91
/**
86
92
* 获取AccessToken
87
- * @param 参数 application_id
93
+ * @param application_id
94
+ * @param loading
88
95
*/
89
96
const getAccessToken : ( application_id : string , loading ?: Ref < boolean > ) => Promise < Result < any > > = (
90
97
application_id ,
@@ -107,10 +114,12 @@ const getApplicationSetting: (
107
114
108
115
/**
109
116
* 修改AccessToken
110
- * @param 参数 application_id
111
117
* data {
112
118
* "is_active": true
113
119
* }
120
+ * @param application_id
121
+ * @param data
122
+ * @param loading
114
123
*/
115
124
const putAccessToken : (
116
125
application_id : string ,
@@ -122,7 +131,6 @@ const putAccessToken: (
122
131
123
132
/**
124
133
* 替换社区版-修改AccessToken
125
- * @param 参数 application_id
126
134
* data {
127
135
* "show_source": boolean,
128
136
* "show_history": boolean,
@@ -131,6 +139,9 @@ const putAccessToken: (
131
139
* "avatar": file,
132
140
* "float_icon": file,
133
141
* }
142
+ * @param application_id
143
+ * @param data
144
+ * @param loading
134
145
*/
135
146
const putXpackAccessToken : (
136
147
application_id : string ,
@@ -170,7 +181,9 @@ const importApplication: (
170
181
171
182
/**
172
183
* 统计
173
- * @param 参数 application_id, data
184
+ * @param application_id
185
+ * @param data
186
+ * @param loading
174
187
*/
175
188
const getStatistics : (
176
189
application_id : string ,
@@ -193,9 +206,10 @@ const open: (application_id: string, loading?: Ref<boolean>) => Promise<Result<s
193
206
}
194
207
/**
195
208
* 对话
196
- * @param 参数
197
209
* chat_id: string
198
210
* data
211
+ * @param chat_id
212
+ * @param data
199
213
*/
200
214
const chat : ( chat_id : string , data : any ) => Promise < any > = ( chat_id , data ) => {
201
215
const prefix = ( window . MaxKB ?. prefix ? window . MaxKB ?. prefix : '/admin' ) + '/api'
@@ -248,6 +262,7 @@ const updatePlatformConfig: (
248
262
/**
249
263
* 应用发布
250
264
* @param application_id
265
+ * @param data
251
266
* @param loading
252
267
* @returns
253
268
*/
@@ -284,7 +299,7 @@ const playDemoText: (application_id: string, data: any, loading?: Ref<boolean>)
284
299
* 文本转语音
285
300
*/
286
301
const postTextToSpeech : (
287
- application_id : String ,
302
+ application_id : string ,
288
303
data : any ,
289
304
loading ?: Ref < boolean > ,
290
305
) => Promise < Result < any > > = ( application_id , data , loading ) => {
@@ -300,7 +315,7 @@ const postTextToSpeech: (
300
315
* 语音转文本
301
316
*/
302
317
const speechToText : (
303
- application_id : String ,
318
+ application_id : string ,
304
319
data : any ,
305
320
loading ?: Ref < boolean > ,
306
321
) => Promise < Result < any > > = ( application_id , data , loading ) => {
@@ -311,7 +326,7 @@ const speechToText: (
311
326
* mcp 节点
312
327
*/
313
328
const getMcpTools : (
314
- application_id : String ,
329
+ application_id : string ,
315
330
mcp_servers : any ,
316
331
loading ?: Ref < boolean > ,
317
332
) => Promise < Result < any > > = ( application_id , mcp_servers , loading ) => {
@@ -320,7 +335,10 @@ const getMcpTools: (
320
335
321
336
/**
322
337
* 上传文件
323
- * @param 参数 file:file
338
+ * @param file
339
+ * @param sourceId
340
+ * @param resourceType
341
+ * @param loading
324
342
*/
325
343
const postUploadFile : (
326
344
file : any ,
0 commit comments