Spaces:
Sleeping
Sleeping
fix: remove redundant status update in streaming
Browse files
src/lib/server/textGeneration/generate.ts
CHANGED
|
@@ -135,11 +135,6 @@ Do not use prefixes such as Response: or Answer: when answering to the user.`,
|
|
| 135 |
if (output.token.text === model.reasoning.beginToken) {
|
| 136 |
reasoning = true;
|
| 137 |
reasoningBuffer += output.token.text;
|
| 138 |
-
yield {
|
| 139 |
-
type: MessageUpdateType.Reasoning,
|
| 140 |
-
subtype: MessageReasoningUpdateType.Status,
|
| 141 |
-
status: "Started thinking...",
|
| 142 |
-
};
|
| 143 |
continue;
|
| 144 |
} else if (output.token.text === model.reasoning.endToken) {
|
| 145 |
reasoning = false;
|
|
|
|
| 135 |
if (output.token.text === model.reasoning.beginToken) {
|
| 136 |
reasoning = true;
|
| 137 |
reasoningBuffer += output.token.text;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
continue;
|
| 139 |
} else if (output.token.text === model.reasoning.endToken) {
|
| 140 |
reasoning = false;
|