Anders
12/12/2025, 7:34 AMstop_sequences get ignored by the provider, the LLM would produce the stop sequence and keep going.
I was thinking this is probably something at the provider level, but this did happen with both Anthropic and Bedrock providers (with Sonnet 4.5), and also I can't remember this happening before I upgraded to BAML 0.214.0 (was on 0.209.0 previously). So now I'm really unsure what the cause of this could be and whether its possible that BAML could be a factor.
The configured stop_sequences work 99% of the time, and I'm not able to consistently reproduce the issue, which is why this is so strange.Vaibhav (BAML 🐑)
12/12/2025, 2:13 PMVaibhav (BAML 🐑)
12/12/2025, 2:14 PMAnders
12/13/2025, 12:20 AMVaibhav (BAML 🐑)
12/13/2025, 1:55 AMAnders
12/16/2025, 6:31 AM