调整内容显示
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import axios from "axios";
|
||||
|
||||
const ins = axios.create({
|
||||
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Access-Control-Allow-Methods': 'GET, POST',
|
||||
'Access-Control-Allow-Headers': 'Content-Type, Access-Control-Allow-Headers, Authorization'
|
||||
},
|
||||
responseType: 'json'
|
||||
})
|
||||
export default ins
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import axios from "./axios";
|
||||
import {AI_AVATAR} from "./env";
|
||||
|
||||
class BaseModel {
|
||||
@@ -17,8 +18,9 @@ export class ChatGPT extends BaseModel {
|
||||
desc: "ChatGPT-3.5所基于的模型"
|
||||
});
|
||||
}
|
||||
async chat(){
|
||||
|
||||
async chat(history, callback) {
|
||||
return await axios.post("")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user