| | |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import { computed, onMounted, reactive, ref, watch } from 'vue'; |
| | | import { getSelectSample, getUserTemplateList } from '/@/api/ai/chat'; |
| | | import { activeSampleId } from '/@/stores/chatRoom'; |
| | | import { activeRoomId, activeSampleId, roomConfig, setRoomConfig } from '/@/stores/chatRoom'; |
| | | import emitter from '/@/utils/mitt'; |
| | | import { useSearch } from '/@/hooks/useSearch'; |
| | | import { debounce, getRecentDateRange } from '/@/utils/util'; |
| | |
| | | |
| | | const changeExample = (item) => { |
| | | emitter.emit('updateChatInput', item.sample_question); |
| | | setRoomConfig(activeRoomId.value,'isAnswerByLLM',false); |
| | | activeSampleId.value = item.sample_id; |
| | | }; |
| | | //获取用户模板 |
| | |
| | | }; |
| | | //#region ====================== templateUseClick ====================== |
| | | const templateUseClick = (row) => { |
| | | setRoomConfig(activeRoomId.value,'isAnswerByLLM',true); |
| | | emitter.emit('updateChatInput', row.template_value); |
| | | }; |
| | | //#endregion |