布局先提交一波

This commit is contained in:
aixianling
2023-05-12 15:53:39 +08:00
parent 81f76164d8
commit 8d362c7468
18 changed files with 2800 additions and 188 deletions

31
src/utils/models.js Normal file
View File

@@ -0,0 +1,31 @@
import {AI_AVATAR} from "./env";
class BaseModel {
constructor(props) {
for (const k in props) {
this[k] = props[k];
}
}
}
export class ChatGPT extends BaseModel {
constructor() {
super({
avatar: AI_AVATAR,
name: 'ChatGPT',
id: "gpt-3.5-turbo",
desc: "ChatGPT-3.5所基于的模型"
});
}
}
export class ChatGLM extends BaseModel {
constructor() {
super({
avatar: AI_AVATAR,
name: 'ChatGLM',
id: "chatglm-6b",
desc: "ChatGLM-6B所基于的模型"
});
}
}