|
|
|
@ -30,7 +30,7 @@ useCopyCode()
|
|
|
|
|
|
|
|
|
|
const { isMobile } = useBasicLayout()
|
|
|
|
|
const { addChat, updateChat, updateChatSome, getChatByUuidAndIndex } = useChat()
|
|
|
|
|
const { scrollRef, scrollToBottom } = useScroll()
|
|
|
|
|
const { scrollRef, scrollToBottom, scrollToBottomIfAtBottom } = useScroll()
|
|
|
|
|
const { usingContext, toggleUsingContext } = useUsingContext()
|
|
|
|
|
|
|
|
|
|
const { uuid } = route.params as { uuid: string }
|
|
|
|
@ -142,7 +142,7 @@ async function onConversation() {
|
|
|
|
|
return fetchChatAPIOnce()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
scrollToBottom()
|
|
|
|
|
scrollToBottomIfAtBottom()
|
|
|
|
|
}
|
|
|
|
|
catch (error) {
|
|
|
|
|
//
|
|
|
|
@ -164,7 +164,7 @@ async function onConversation() {
|
|
|
|
|
loading: false,
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
scrollToBottom()
|
|
|
|
|
scrollToBottomIfAtBottom()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -196,7 +196,7 @@ async function onConversation() {
|
|
|
|
|
requestOptions: { prompt: message, options: { ...options } },
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
scrollToBottom()
|
|
|
|
|
scrollToBottomIfAtBottom()
|
|
|
|
|
}
|
|
|
|
|
finally {
|
|
|
|
|
loading.value = false
|
|
|
|
|