-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Item with id 'rs_...' not found. Items are not persisted when store is set to false #7543
Copy link
Copy link
Closed
Labels
ai/providerrelated to a provider package. Must be assigned together with at least one `provider/*` labelrelated to a provider package. Must be assigned together with at least one `provider/*` labeldocumentationImprovements or additions to documentationImprovements or additions to documentationprovider/openaiIssues related to the @ai-sdk/openai providerIssues related to the @ai-sdk/openai provider
Description
Description
Getting this error when running openai reasoning models with the responses API and store: false:
Item with id 'rs_...' not found. Items are not persisted when `store` is set to false. Try again with `store` set to true, or remove this item from your input.
From the request body, it looks like the id is present on a previous message reasoning block:
{
"type": "reasoning",
"id": "rs_...",
"encrypted_content": null,
"summary": []
},
I haven't checked the code, but I imagine the provider code assumes it can always send the encrypted reasoning as null with the id, but when store is set to false it needs to be included directly on the request.
This was working fine on v4 afaict
AI SDK Version
- ai: 5.0.0-beta.27
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ai/providerrelated to a provider package. Must be assigned together with at least one `provider/*` labelrelated to a provider package. Must be assigned together with at least one `provider/*` labeldocumentationImprovements or additions to documentationImprovements or additions to documentationprovider/openaiIssues related to the @ai-sdk/openai providerIssues related to the @ai-sdk/openai provider