client icon indicating copy to clipboard operation
client copied to clipboard

Feature Request: Add support for web search

Open tcgumus opened this issue 10 months ago • 3 comments

Hello, I admire this repo and thanks for all the incredible work.

I would like to make a feature request for web search. If you direct me to where to start, i can also work on this feature.

https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat

best regards, tuna

tcgumus avatar Mar 13 '25 10:03 tcgumus

You'll want to peek the corresponding Chat class - https://github.com/openai-php/client/blob/main/src/Responses/Chat/CreateResponse.php in the main client repo. This is just the Laravel wrapper.

Add changes to the docblocks, parsers, handlers and tests and you should be good.

iBotPeaches avatar Mar 14 '25 18:03 iBotPeaches

I migrated this issue to the client repo. As it seems you want to add support for web_search_options for Chat Completion, which would be done in this repo.

iBotPeaches avatar Apr 10 '25 01:04 iBotPeaches

Ah I was wrong. Its probably to support all the citation metadata returned: https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat#output-and-citations

iBotPeaches avatar Apr 11 '25 11:04 iBotPeaches