Skip to content

Item with id 'rs_...' not found. Items are not persisted when store is set to false #7543

@alvarosevilla95

Description

@alvarosevilla95

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

Metadata

Metadata

Assignees

Labels

ai/providerrelated to a provider package. Must be assigned together with at least one `provider/*` labeldocumentationImprovements or additions to documentationprovider/openaiIssues related to the @ai-sdk/openai provider

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions