File tree 4 files changed +5
-5
lines changed 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ declare namespace Chat {
3
3
uuid ?: number
4
4
dateTime : string
5
5
reasoning ?: string
6
- finish_reason ?: null | 'stop'
6
+ finish_reason ?: string
7
7
text : string
8
8
images ?: string [ ]
9
9
inversion ?: boolean
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { t } from '@/locales'
5
5
6
6
interface Props {
7
7
reasoning? : string
8
- finishReason ? : string
8
+ reasonEnd ? : boolean
9
9
loading? : boolean
10
10
}
11
11
@@ -23,7 +23,7 @@ const reasoningBtnTitle = computed(() => {
23
23
})
24
24
25
25
const shouldShowThinkingIndicator = computed (() => {
26
- return props .loading && props .finishReason !== ' stop '
26
+ return props .loading && ! props .reasonEnd
27
27
})
28
28
29
29
const hasReasoningText = computed (() => {
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ function isEventTargetValid(event: any) {
226
226
</template >
227
227
</NSpace >
228
228
</p >
229
- <Reasoning v-if =" reasoning" :reasoning =" reasoning" :finish- reason = " finishReason " :loading =" loading" />
229
+ <Reasoning v-if =" reasoning" :reasoning =" reasoning" :reason-end = " text ? text.length > 0 : false " :loading =" loading" />
230
230
<div
231
231
class =" flex items-end gap-1 mt-2"
232
232
:class =" [inversion ? 'flex-row-reverse' : 'flex-row']"
Original file line number Diff line number Diff line change @@ -688,7 +688,7 @@ onUnmounted(() => {
688
688
:current-nav-index =" currentNavIndexRef"
689
689
:date-time =" item.dateTime"
690
690
:reasoning =" item?.reasoning"
691
- :finish_reason =" item?.finish_reason"
691
+ :finish-reason =" item?.finish_reason"
692
692
:text =" item.text"
693
693
:images =" item.images"
694
694
:inversion =" item.inversion"
You can’t perform that action at this time.
0 commit comments