radekosmulski
09/29/2025, 1:52 AMcr = ClientRegistry()
cr.add_llm_client(name='MyClient', provider='openai', options={
"model": "gpt-4",
"temperature": 0.7,
})
cr.set_primary('MyClient')
# Your function will now use the new model
result = b.YourFunction("input", {"client_registry": cr})
But not only do I need to create a new registry (can't use the models I alreayd have configured in my clients.baml) and on top of that, for each call in my code I now need to pass the client_registry as a kwarg). Seems a little bit tedious for something that is at the center of the workflow (trying out different models as we work on stuff) 🙂