Fix linting
This commit is contained in:
parent
8d53ef7ff0
commit
8ad7109313
1 changed files with 2 additions and 2 deletions
|
|
@ -188,7 +188,7 @@ export default function RetrievalTesting() {
|
||||||
if (thinkEndIndex !== -1) {
|
if (thinkEndIndex !== -1) {
|
||||||
// Thinking has finished for this chunk
|
// Thinking has finished for this chunk
|
||||||
assistantMessage.isThinking = false
|
assistantMessage.isThinking = false
|
||||||
|
|
||||||
// Only calculate time and extract thinking content once
|
// Only calculate time and extract thinking content once
|
||||||
if (!thinkingProcessed.current) {
|
if (!thinkingProcessed.current) {
|
||||||
if (thinkingStartTime.current && !assistantMessage.thinkingTime) {
|
if (thinkingStartTime.current && !assistantMessage.thinkingTime) {
|
||||||
|
|
@ -200,7 +200,7 @@ export default function RetrievalTesting() {
|
||||||
.trim()
|
.trim()
|
||||||
thinkingProcessed.current = true
|
thinkingProcessed.current = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Always update display content as content after </think> may grow
|
// Always update display content as content after </think> may grow
|
||||||
assistantMessage.displayContent = assistantMessage.content.substring(thinkEndIndex + thinkEndTag.length).trim()
|
assistantMessage.displayContent = assistantMessage.content.substring(thinkEndIndex + thinkEndTag.length).trim()
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue