Assistant prefill not supported by Opus 4.6
Description
Assistant prefill seems to be disabled
AI SDK Version
No response
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
I don't think that's on the AI SDK for opus 4.6 right?
Looks like it's not supported by the model anyway
https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#migrating-away-from-prefilled-responses
been occasionally seeing these errors as well after tool calls, but we're not intentionally using prefill
Identify issue type
{
"evidence": [
"The description only states that “Assistant prefill seems to be disabled” without reproduction steps, expected behavior, SDK version, or error details.",
"A comment suggests the limitation is due to Claude Opus 4.6/model behavior rather than the AI SDK, linking Anthropic documentation about migrating away from prefilled responses.",
"Another comment mentions occasional errors after tool calls, but does not provide enough detail to establish a concrete AI SDK defect."
],
"rationale": "The issue is ambiguous and appears to concern a model capability/limitation rather than a clearly demonstrated AI SDK bug or a specific documentation/example/feature request.",
"type": "none",
"confidence": "medium"
}
This is expected behavior from Anthropic: prefilled assistant responses are no longer supported for Claude Opus 4.6. Anthropic documents this API change and recommends migrating to direct instructions, structured outputs, or tool calling:
https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#migrating-away-from-prefilled-responses