mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-08 17:09:07 +08:00
add error tip in llm test dialog
This commit is contained in:
@@ -140,6 +140,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import { sleep } from '@geekgeekrun/utils/sleep.mjs'
|
import { sleep } from '@geekgeekrun/utils/sleep.mjs'
|
||||||
|
import { ElMessage } from 'element-plus'
|
||||||
type MessageItem = {
|
type MessageItem = {
|
||||||
text: string
|
text: string
|
||||||
usedLlmConfig: string
|
usedLlmConfig: string
|
||||||
@@ -184,6 +185,12 @@ async function sendLlmGeneratedContent() {
|
|||||||
top: scrollElRef.value?.scrollHeight,
|
top: scrollElRef.value?.scrollHeight,
|
||||||
behavior: 'smooth'
|
behavior: 'smooth'
|
||||||
})
|
})
|
||||||
|
} catch (err) {
|
||||||
|
ElMessage.error({
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
|
grouping: true,
|
||||||
|
message: `<div>本次测试所使用的模型不可用</div><div style="margin-top: 10px; white-space: nowrap;">建议在大语言模型配置中关闭相关模型</div>`
|
||||||
|
})
|
||||||
} finally {
|
} finally {
|
||||||
isLoading.value = false
|
isLoading.value = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user