jesper_tno
09/15/2025, 9:11 AMbaml-cli serve) and I'm trying to get the client registry to work. I add the following JSON to my /call/... request:
json
"__baml_options__": {
"client_registry": {
"clients": {
"name": "Default",
"provider": "google-ai",
"options": {
"api_key": "my api key",
"model": "gemini-2.5-flash"
}
},
"primary": "Default"
}
}
But I get a parse error: "Failed to parse __baml_options__: invalid type: map, expected a sequence". Does anyone know what's going wrong here? It seems the API expects an array for __baml_options__ but that goes against the API spec it generates. My BAML version is 0.207.1.aaronv (BAML)
09/15/2025, 5:53 PMclients should be an array no?jesper_tno
09/16/2025, 7:22 AMaaronv (BAML)
09/16/2025, 5:06 PM