https://www.boundaryml.com logo
🟡 Error in streaming GPT-5 model with BAML
# questions
g
Hi guys, I've just started using BAML and want to know how to turn off the stream response. I'm trying gpt-5 and get this error : " Your organization must be verified to stream this model. Please go to: https://platform.openai.com/settings/organization/general and click on Verify Organization. "
v
Oh! You can use a flag!
Let me ask bammy 😅
g
It seems like the playground will try getting stream response by default
v
You're right, I apologize. To disable streaming in BAML with the OpenAI provider, you should set it in the client options. Here's the correct way: client MyClient { provider "openai-generic" options { stream false model "gpt-4" api_key env.OPENAI_API_KEY } } The streaming option goes inside the options block, not as a parameter to the client usage in the function.
The stream option can disable that client from ever streaming
g
I want to use the web_serach_preview tool and tried in the play ground with following client : client GPT5WebSearch { provider "openai-responses" options { model "gpt-5" api_key env.OPENAI_API_KEY stream false tools [ { type "web_search_preview" } ] } } and still getting the error: Unspecified error code: 400 Request failed with status code: 400 Bad Request, { "error": { "message": "Your organization must be verified to stream this model. Please go to: https://platform.openai.com/settings/organization/general and click on Verify Organization. If you just verified, it can take up to 15 minutes for access to propagate.", "type": "invalid_request_error", "param": "stream", "code": "unsupported_value" } } Request options: {"model":"gpt-5","stream":false,"tools":[{"type":"web_search_preview"}]}
it seems like the playground overwirte the stream setting
v
oh! BAML hallucinated:
Copy code
supports_streaming false
not
stream false
(sorry wasn't on my computer then)
g
Thank you so much, it works well !