Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/utils/ai/providerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export function buildProviderOptions(
...(reasoningEffort && {
reasoningEffort,
reasoningSummary: "detailed", // Enable detailed reasoning summaries
// Include reasoning encrypted content to preserve reasoning context across conversation steps
// Required when using reasoning models (gpt-5, o3, o4-mini) with tool calls
// See: https://sdk.vercel.ai/providers/ai-sdk-providers/openai#responses-models
include: ["reasoning.encrypted_content"],
}),
// Include previousResponseId for persistence (Responses API)
...(previousResponseId && { previousResponseId }),
Expand Down