Skip to content

Fix chat_structured(echo = "text") for tool-based structured output#999

Merged
thisisnic merged 2 commits into
tidyverse:mainfrom
thisisnic:977-nonstream
Jun 12, 2026
Merged

Fix chat_structured(echo = "text") for tool-based structured output#999
thisisnic merged 2 commits into
tidyverse:mainfrom
thisisnic:977-nonstream

Conversation

@thisisnic

Copy link
Copy Markdown
Collaborator

Fixes #977

Didn't add a test as felt a little too granular compared to what we tend to test for currently. Happy to add one if that would be better though?

I tested locally and it works for Claude though don't have any Bedrock credentials to test on currently.

@hadley hadley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approach seems reasonable to me.

@thisisnic thisisnic marked this pull request as ready for review June 12, 2026 09:21
@thisisnic

Copy link
Copy Markdown
Collaborator Author

Tested with Bedrock and looks good so I'll merge now.

@thisisnic thisisnic merged commit 494b93a into tidyverse:main Jun 12, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chat_structured() with echo = "text" errors on providers that force non-streaming

2 participants