mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-31 10:52:47 +00:00
10 lines
445 B
TypeScript
10 lines
445 B
TypeScript
import { GET, POST, PUT } from './request';
|
|
import type { ChatModelItemType } from '@/constants/model';
|
|
import type { InitDateResponse } from '@/pages/api/system/getInitData';
|
|
|
|
export const getInitData = () => GET<InitDateResponse>('/system/getInitData');
|
|
|
|
export const getSystemModelList = () => GET<ChatModelItemType[]>('/system/getModels');
|
|
|
|
export const uploadImg = (base64Img: string) => POST<string>('/system/uploadImage', { base64Img });
|