/* * @Author: donghao donghao@supervision.ltd * @Date: 2024-05-24 17:57:19 * @LastEditors: donghao donghao@supervision.ltd * @LastEditTime: 2024-05-30 14:58:40 * @FilePath: \general-ai-platform-web\src\services\business\model.ts * @Description: api 模型 */ // @ts-ignore /* eslint-disable */ import { request } from '@umijs/max'; /** 企业业务模型部署 */ // 添加企业部署的业务模型 export async function apiModelDeploymentAdd(body: any, options?: { [key: string]: any }) { return request( `/api/v1/model/deployment/add`, { method: 'POST', headers: { // 'Content-Type': 'application/json', // "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" }, data: body, ...(options || {}), }, ); } // 编辑企业部署的业务模型 export async function apiModelDeploymentEdit(body: any, options?: { [key: string]: any }) { return request( `/api/v1/model/deployment/edit`, { method: 'POST', headers: { // 'Content-Type': 'application/json', // "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" }, data: body, ...(options || {}), }, ); } // 企业部署的业务模型列表 export async function apiModelDeploymentList(body: any, options?: { [key: string]: any }) { return request( `/api/v1/model/deployment/list`, { method: 'POST', headers: { // 'Content-Type': 'application/json', // "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" }, data: body, ...(options || {}), }, ); } // // 删除企业部署的业务模型 // export async function apiModelDeploymentDelete(body: any, options?: { [key: string]: any }) { // return request( // `/api/v1/model/deployment/delete`, // { // method: 'POST', // headers: { // // 'Content-Type': 'application/json', // // "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" // }, // data: body, // ...(options || {}), // }, // ); // } // 企业部署的业务模型信息 export async function apiModelDeploymentInfo(body: any, options?: { [key: string]: any }) { return request( `/api/v1/model/deployment/info`, { method: 'POST', headers: { // 'Content-Type': 'application/json', // "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8" }, data: body, ...(options || {}), }, ); }