fix
This commit is contained in:
1 parent
5400cc08de
commit
ca5f39b3fa
16 files changed
+244
-113
No files matched your search
@@ -5,14 +5,11 @@ export interface IQuery {
|
||||
token: string;
|
||||
}
|
||||
|
||||
const baseUrl = 'https://api.zhishuyun.com';
|
||||
|
||||
class ChatGPTOperator {
|
||||
async post(data: IRequest, query: IQuery, config?: AxiosRequestConfig): Promise<AxiosResponse<IResponse>> {
|
||||
return await axios.post(`/chatgpt`, data, {
|
||||
...config,
|
||||
params: query,
|
||||
baseURL: baseUrl
|
||||
params: query
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user