Open AI with webSearch tool #8995
Unanswered
davidahaddad
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Im using ai-sdk/openai to string together gpt-4.1 with tool calling, and specifically webSearch functionality. When using the built in webSearch function, no matter what I set searchContextSize to ('low', 'medium', or 'high'), I still get an enormous amount of context ballooning from the search results. Has anyone had any luck with using this and trimming the results? I tried to override the execute function to manually trim down the results but that doesnt seem to be working. I know some other models have some finer parameters you can utilize.
Beta Was this translation helpful? Give feedback.
All reactions