Matt
08/03/2026, 8:53 PMallowed_role_metadata flag for the gpt 5.6 models? From my testing, it seems those only work for claude & cache_control, but not prompt_cache_breakpointVaibhav (BAML 🐑)
08/03/2026, 8:53 PMMatt
08/03/2026, 8:54 PMMatt
08/03/2026, 9:07 PMbaml
allowed_role_metadata ["cache_control", "prompt_cache_breakpoint"]
{{ _.role("system", cache_control={"type": "default"},
prompt_cache_breakpoint={"mode": "explicit"}) }}
the OpenAI Responses wire body was:
json
{
"model": "gpt-5.6",
"prompt_cache_options": { "mode": "explicit" },
"input": [{
"role": "system",
"content": [{ "type": "input_text", "text": "Static instructions." }]
}]
}
Both metadata fields are dropped. prompt_cache_options and prompt_cache_key do survive, but BAML 0.221.0 cannot render OpenAI’s content-block
prompt_cache_breakpoint.