mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +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 =
|
||||
message.role === 'assistant' &&
|
||||
message.finishReason &&
|
||||
message.finishReason !== 'stop' &&
|
||||
message.finishReason !== 'tool-calls'
|
||||
!['stop', 'tool-calls', 'error'].includes(message.finishReason)
|
||||
|
||||
const handleContinue = () => {
|
||||
onContinueGeneration?.(message)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user