mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-21 07:40:11 +08:00
fix: simplify finish reason warning condition
This commit is contained in:
parent
504ce9d936
commit
f9024eb07a
@ -19,8 +19,7 @@ const MessageContent: React.FC<Props> = ({ message, onContinueGeneration, onDism
|
|||||||
const showFinishReasonWarning =
|
const showFinishReasonWarning =
|
||||||
message.role === 'assistant' &&
|
message.role === 'assistant' &&
|
||||||
message.finishReason &&
|
message.finishReason &&
|
||||||
message.finishReason !== 'stop' &&
|
!['stop', 'tool-calls', 'error'].includes(message.finishReason)
|
||||||
message.finishReason !== 'tool-calls'
|
|
||||||
|
|
||||||
const handleContinue = () => {
|
const handleContinue = () => {
|
||||||
onContinueGeneration?.(message)
|
onContinueGeneration?.(message)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user