https://www.boundaryml.com logo
Is there a way to get the model the
# questions
t
Is there a way to get the model the function is using in python?
Copy code
js
function Summarize(items: string[]) -> string {
  client "CustomGPT4o"
  ...
I would like to do
Copy code
js
from baml_client import b
def model():
  return b.Summarize.model # returns "CustomGPT4o" or "GPT4o" ect
Just so when I am saving results I can include the model in the filename programatically.
v
collector! that gives you all the information including the raw http request
idk if we expose the raw client tho, namely because it gets a bit complicated with fallbacks and round-robin clients
but that will give you all the information about what primitive client you calling it via (openai, anthropic, etc) - everything but fallbacks and roundrobins and retries