Hello all. How do I retrieve the actual response when using browser_search with gpt-oss? The json I get back is huge. The first assistant response is empty. But it has searched for something I can see in the json. This is the start of the response:
I use this to retrieve curl answers in PHP:
$decodedResponse = json_decode($response, true);
$content = $decodedResponse[‘choices’][0][‘message’][‘content’] ?? ‘’;
Chatted with ChatGPT about this with your answer, and it’s probably because I have streaming set to true. Which you do not have. Things gets much more complicated with streaming and browser search set to true.
Anyway, I use groq/compound-mini now instead with browsing (no streaming) and it works great!