feat: 支持 markdown 格式 (#77)

* feat: 支持 markdown 格式和图片

* perf: 重载的时候滚动条保持

* chore: version 2.5.2

* feat: 添加文字换行

* chore: 添加新封面

* chore: 更新 cover
This commit is contained in:
Redon
2023-02-21 11:57:29 +08:00
committed by GitHub
parent 938c91f635
commit ac9536ab87
11 changed files with 85 additions and 24 deletions

View File

@@ -153,7 +153,6 @@ async function onRegenerate(index: number) {
requestOptions: { prompt: message, ...options },
},
)
scrollToBottom()
try {
const { data } = await fetchChatAPI<Chat.ConversationResponse>(message, options, controller.signal)
@@ -170,7 +169,6 @@ async function onRegenerate(index: number) {
requestOptions: { prompt: message, ...options },
},
)
scrollToBottom()
}
catch (error: any) {
let errorMessage = 'Something went wrong, please try again later.'
@@ -191,7 +189,6 @@ async function onRegenerate(index: number) {
requestOptions: { prompt: message, ...options },
},
)
scrollToBottom()
}
finally {
loading.value = false