https://www.boundaryml.com logo
🟡 Seeking guidance on using OpenAI web_search too...
# questions
j
hey, just dipping my toes into baml world - how do I structure a baml function to use the openai web_search tool? is that the wrong way of going about it?
v
Copy code
client<llm> WithWebsearch {
  provider "openai-responses"
  options {
    model "gpt-4o"
    api_key env.OPENAI_API_KEY
    tools [
      {
        type "web_search_preview"
      }
    ]
  }
}
that should work!
j
amazing! I thought it would be something easy like that. trying it out now.
the DX on this is fantastic, btw
v
<#
<3*
thanks for trying BAML
j
super low friction to get up and running
v
as you keep running into issues, please send them our way
makes BAML better for everyone
j
oh I will 😈