In the doc https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses
it says that the WebSearch tool is available via the Response API as well as via the ChatCompletion API
But how exactly does it work via ChatCompletion? I am always getting an error in the response.