Skip to content

Commit 195ca64

Browse files
CaralHsiCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent 6b8583d commit 195ca64

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/memos/llms/deepseek.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ def generate_stream(self, messages: MessageList, **kwargs) -> Generator[str, Non
4343
extra_body=self.config.extra_body,
4444
)
4545
# Streaming chunks of text
46-
reasoning_parts = ""
4746
answer_parts = ""
4847
for chunk in response:
4948
delta = chunk.choices[0].delta
5049
if hasattr(delta, "reasoning_content") and delta.reasoning_content:
51-
reasoning_parts += delta.reasoning_content
5250
yield delta.reasoning_content
5351

5452
if hasattr(delta, "content") and delta.content:

0 commit comments

Comments
 (0)