This commit is contained in:
2026-06-30 15:02:20 +08:00
commit 3948b5a48a
306 changed files with 77275 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
import request from '@/utils/request'
export const aiAPI = {
list(serviceType) {
return request.get('/ai-configs', { params: serviceType ? { service_type: serviceType } : {} })
},
get(id) {
return request.get(`/ai-configs/${id}`)
},
create(body) {
return request.post('/ai-configs', body)
},
update(id, body) {
return request.put(`/ai-configs/${id}`, body)
},
delete(id) {
return request.delete(`/ai-configs/${id}`)
},
testConnection(body) {
return request.post('/ai-configs/test', body)
},
/** 即梦2角色认证:GET /api/business/v1/assetsbody: base_url, api_key, limit?, cursor? */
listJimeng2MaterialAssets(body) {
return request.post('/ai-configs/jimeng2-list-assets', body)
},
/** ModelArk 私有资产库:action + payload,见 AI 配置页 SD2 资产管理 */
modelArkAsset(body) {
return request.post('/ai-configs/model-ark-asset', body)
},
getVendorLock() {
return request.get('/ai-configs/vendor-lock')
},
bulkUpdateKey(apiKey) {
return request.put('/ai-configs/bulk-update-key', { api_key: apiKey })
}
}