https://www.boundaryml.com logo
Would be really awesome to have the ability to cha...
# suggestions
r
Would be really awesome to have the ability to change the model a function uses across all following function invocation directly in code, that would be terrific for experimentation. I know this exists:
Copy code
cr = 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) 🙂