Can't use OpenAI WebSearch tool
Hi there.
I can't seem to use OpenAI's WebSearch tool from the AI SDK. I get this error (cut off due to Discord's text limit):
Essentially some mismatched types by the looks of it.
Here's the code:
Where web_search: openai.tools.webSearch({}) gives the error.
Here are the versions I'm on (the latest, as far as I know):
Is this the proper way to use the web search tool?
I can't seem to use OpenAI's WebSearch tool from the AI SDK. I get this error (cut off due to Discord's text limit):
Essentially some mismatched types by the looks of it.
Here's the code:
Where web_search: openai.tools.webSearch({}) gives the error.
Here are the versions I'm on (the latest, as far as I know):
Is this the proper way to use the web search tool?