chatgpt ui
This commit is contained in:
1 parent
523ab178a4
commit
ed43ab5afd
24 files changed
+495
-34
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { AxiosResponse } from 'axios';
|
||||
import { httpClient } from '../../instance';
|
||||
import { IRequest, IResponse } from './models';
|
||||
|
||||
export interface IQuery {
|
||||
token: string;
|
||||
}
|
||||
|
||||
const baseUrl = 'https://api.zhishuyun.com';
|
||||
|
||||
class ChatGPTOperator {
|
||||
async post(data: IRequest, query: IQuery): Promise<AxiosResponse<IResponse>> {
|
||||
return await httpClient.post(`/chatgpt`, data, {
|
||||
params: query,
|
||||
baseURL: baseUrl
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export const chatgptOperator = new ChatGPTOperator();
|
||||
Reference in new issue
Block a user