title: @rahulgs: anthropic deprecated forced prefilling of assistant messages in the opus 4.6 release
we used this a...
author: @rahulgs
contenttype: tweet
publication: Twitter/X
published: 2026-02-06T00:55:07+00:00
sourceurl: https://x.com/rahulgs/status/2019575548452733299
word_count: 79
anthropic deprecated forced prefilling of assistant messages in the opus 4.6 release
we used this at ramp to guarantee correct json -
whenever the model diverged from correct json structure, we would reattempt with a correct json prefix and let the model fill in the rest of the json object starting from the corrected prefix
can finally delete this grammar-correction code that @que_tourist and I wrote 3 years ago
(also gennady also happens to be the goat competitive programmer)