How to add "detail" parameter to the AzureOpenAI client for image processing?
"detail": "high"
thegoat_19912
08/20/2025, 2:06 PM
client AzureOpenAI {
provider azure-openai
options {
resource_name "xx"
deployment_id "gpt-4o"
// Alternatively, you can use the base_url field
//base_url "https://dd.xx"
api_version "2025-01-01-preview"
api_key env.OPENAI_API_KEY
}
}
v
Vaibhav (BAML 🐑)
08/20/2025, 2:08 PM
we are still investigating how we'll be configuring additional metadata for types like images and other multimodal types.
If this is essential to your application, then the best way to configure this today is the modular API! there you'll get the full web request out of BAML and do with it as you please
https://docs.boundaryml.com/guide/baml-advanced/modular-api
t
thegoat_19912
08/20/2025, 2:13 PM
Thank you for the quick reply, looking forward to the implementation 🙂
I'll stick at the moment with manually resizing images and hoping detail=high is set, i'm not comfortable yet with the Modular API
v
Vaibhav (BAML 🐑)
08/20/2025, 2:54 PM
we are thinking about how we'll expose this fyi, just in design space as we need to think about both how you can set this in your data model, but also in the prompt