mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Merge pull request #606 from Szpadel/extend-r1-support
Extend deepseek-r1 support
This commit is contained in:
@@ -2391,6 +2391,10 @@ export class Cline {
|
||||
let reasoningMessage = ""
|
||||
try {
|
||||
for await (const chunk of stream) {
|
||||
if (!chunk) {
|
||||
// Sometimes chunk is undefined, no idea that can cause it, but this workaround seems to fix it
|
||||
continue
|
||||
}
|
||||
switch (chunk.type) {
|
||||
case "reasoning":
|
||||
reasoningMessage += chunk.text
|
||||
|
||||
Reference in New Issue
Block a user