diff --git a/src/components/chat/InputBox.vue b/src/components/chat/InputBox.vue index ae82637b..99beb0a9 100644 --- a/src/components/chat/InputBox.vue +++ b/src/components/chat/InputBox.vue @@ -1,38 +1,43 @@ diff --git a/src/components/chat/ModelSelector.vue b/src/components/chat/ModelSelector.vue new file mode 100644 index 00000000..1802998d --- /dev/null +++ b/src/components/chat/ModelSelector.vue @@ -0,0 +1,114 @@ + + + + + diff --git a/src/pages/chat/Index.vue b/src/pages/chat/Index.vue index dadb21b6..637d424d 100644 --- a/src/pages/chat/Index.vue +++ b/src/pages/chat/Index.vue @@ -1,11 +1,10 @@ @@ -16,31 +15,54 @@ import { ElMain, ElAside, ElButton, ElDrawer } from 'element-plus'; import LeftNavigator from '@/components/common/LeftNavigator.vue'; import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; import Introduction from '@/components/conversation/Introduction.vue'; +import InputBox from '@/components/chat/InputBox.vue'; +import ModelSelector from '@/components/chat/ModelSelector.vue'; export default defineComponent({ name: 'ChatIndex', components: { - Introduction + Introduction, + InputBox, + ModelSelector }, data() { return { - drawer: false + model: 'chatgpt', + drawer: false, + question: '' }; } }); -