Hello,
I believe I am encountering an issue where OpenAI’s Create Run API w/streaming will not call from within a custom event.
I’ve successfully integrated OpenAI into my app and have been using it for months. But with Bubble’s latest native API streaming feature, I wanted to implement some changes.
I added the “Create run” call via the API Connector, except this time with streaming.
I have a custom event where this API is called titled “openai_run_streaming_create”. It has 2 actions, 1) create a run w/streaming and 2) display the result’s of step 1’s text stream into a group:
This custom event is part of another workflow:
The Problem
What I discovered is that with this current setup, the “Create Run” all will not run. Instead, I receive this error from Bubble:
What I discovered is that when the “Create Run” call is run from within the custom event, it will fail for some reason. But when I include the call directly in a workflow, it succeeds.
As another test, I rebuilt the same workflow, including with a custom event, except I used a “Create Run” API call that did not use streaming. This worked.
This issue seems to be that the call which has streaming enabled cannot be called from within a custom event, which has to be a bug.
If this is not a bug, can someone explain why this should not work?
Thanks,
Reginald Andreas