Skip to content

Conversation

@aayush-kapoor
Copy link
Contributor

@aayush-kapoor aayush-kapoor commented Nov 27, 2025

Background

OAI sometimes doesn't render the url param for the open_page action type, leading to validation errors.

Summary

Set the parameter to .nullish()

Manual Verification

  • First, just run the repro code example to observe the error.
  • Then apply the fix and run the same example again

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

Fixes #9308 and #10669

Copy link
Collaborator

@lgrammel lgrammel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs changeset

<span className="font-semibold">In URL:</span>{' '}
<a
href={output.action.url}
href={output.action.url ?? undefined}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not make sense

Copy link
Contributor Author

@aayush-kapoor aayush-kapoor Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm might as well remove the span that tries to access the openPage url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAI: 'tool-error' chunk is returned even when web search is successful

3 participants