Add round style for button and fix model name (#17)

This commit is contained in:
AceDataCloud committed 2024-04-05 06:39:40 +00:00
1 parent 1d4b42aefb
commit b2036fc477
9 files changed
+41 -31

No files matched your search

+9 -1
View File
@@ -97,7 +97,15 @@ export default defineComponent({
},
computed: {
model() {
return this.$store.state.chat.model;
const modelName = this.$store.state.chat.model.name;
const model = [
CHAT_MODEL_GPT_3_5,
CHAT_MODEL_GPT_3_5_BROWSING,
CHAT_MODEL_GPT_4,
CHAT_MODEL_GPT_4_BROWSING,
CHAT_MODEL_GPT_4_VISION
].find((model) => model.name === modelName);
return model;
}
},
methods: {