调整内容显示

This commit is contained in:
aixianling
2023-05-12 18:04:58 +08:00
parent 795f6cd652
commit cd8e0f57aa
7 changed files with 5440 additions and 28 deletions

View File

@@ -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

View File

@@ -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("")
}
}