Skip to content

Commit fdbee07

Browse files
authored
Clean up comments in Task.ts
Removed outdated comment regarding model's preserveReasoning flag.
1 parent 1bd757e commit fdbee07

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/core/task/Task.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3437,8 +3437,6 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
34373437
// Check if the model's preserveReasoning flag is set
34383438
// If true, include the reasoning block in API requests
34393439
// If false/undefined, strip it out (stored for history only, not sent back to API)
3440-
// Note: Use api.getModel() directly instead of cachedStreamingModel since
3441-
// buildCleanConversationHistory is called before streaming starts
34423440
const shouldPreserveForApi = this.api.getModel().info.preserveReasoning === true
34433441
let assistantContent: Anthropic.Messages.MessageParam["content"]
34443442

0 commit comments

Comments
 (0)