We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd757e commit fdbee07Copy full SHA for fdbee07
src/core/task/Task.ts
@@ -3437,8 +3437,6 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
3437
// Check if the model's preserveReasoning flag is set
3438
// If true, include the reasoning block in API requests
3439
// 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
3442
const shouldPreserveForApi = this.api.getModel().info.preserveReasoning === true
3443
let assistantContent: Anthropic.Messages.MessageParam["content"]
3444
0 commit comments