feat: attachment_support
This commit is contained in:
@@ -38,6 +38,7 @@ export const useMenuStore = defineStore('menuStore', () => {
|
||||
const firstMentionedItems = ref<any[]>([])
|
||||
const firstModelId = ref('')
|
||||
const firstImageFiles = ref<any[]>([])
|
||||
const firstAttachmentFiles = ref<any[]>([])
|
||||
const prefillQuery = ref('')
|
||||
|
||||
const applyMenuTranslations = () => {
|
||||
@@ -99,11 +100,12 @@ export const useMenuStore = defineStore('menuStore', () => {
|
||||
isFirstSession.value = payload
|
||||
}
|
||||
|
||||
const changeFirstQuery = (payload: string, mentionedItems: any[] = [], modelId: string = '', imageFiles: any[] = []) => {
|
||||
const changeFirstQuery = (payload: string, mentionedItems: any[] = [], modelId: string = '', imageFiles: any[] = [], attachmentFiles: any[] = []) => {
|
||||
firstQuery.value = payload
|
||||
firstMentionedItems.value = mentionedItems
|
||||
firstModelId.value = modelId
|
||||
firstImageFiles.value = imageFiles
|
||||
firstAttachmentFiles.value = attachmentFiles
|
||||
}
|
||||
|
||||
const setPrefillQuery = (q: string) => {
|
||||
@@ -123,6 +125,7 @@ export const useMenuStore = defineStore('menuStore', () => {
|
||||
firstMentionedItems,
|
||||
firstModelId,
|
||||
firstImageFiles,
|
||||
firstAttachmentFiles,
|
||||
prefillQuery,
|
||||
clearMenuArr,
|
||||
updatemenuArr,
|
||||
|
||||
Reference in New Issue
Block a user