hemax99#epic
hemax99#epic2mo ago

Why would my streaming API call to Open AI only return this?

I'm using the template provided by Buildship and I've adjusted the API key and Assistant ID to match mine. Then, I'm passing the parameters to it through the body when testing. However, no data is being returned. If I chat with the assistant directly in the playground I have no problem. Please help! I've been stuck for three days. 🤬 Error and code below... { "_read": "fun0ction(){}", "_readableState": { "buffer": [], "pipes": [], "bufferIndex": 0, "length": 0, "highWaterMark": 16384, "awaitDrainWriters": null }, "_events": { "error": "function () { [native code] }" }, "_eventsCount": 1 } Code attached.
Solution:
Hi @hemax99#epic Streaming Assistant won't work in Test Mode, you'll be required to ship the workflow and then test it on your client-side (frontend) or use BuildShip's chat widget to verify streaming, also ensure you enable streaming in the chat widget. You can refer to this video - https://www.youtube.com/watch?v=H4xx_7M0TDQ. Also, please refrain from using such bad emojis in the request. 🙂...
Jump to solution
3 Replies
AI Support
AI Support2mo ago
AI Support Bot Information
<@773726335700172821> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human! Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers. Please note: Team members will review and answer the questions on best efforts basis.
AI Support
AI Support2mo ago
AI Response
It looks like you're experiencing an issue related to the code or the setup in your BuildShip workflow. Unfortunately, I can't view or execute code directly in this environment, but I can provide you with some general advice that might help you diagnose the problem: 1. Check API Key and Assistant ID: Ensure that the API Key and Assistant ID are correctly set in the BuildShip environment. Double-check for any typos or spaces that may affect their validity. 2. Review Node Configuration: Make sure all necessary nodes are configured correctly, especially those handling API calls. Ensure that any nodes responsible for parsing or handling data are set up properly. 3. Test Inputs and Outputs: Double-check the inputs you're feeding into the nodes and confirm the output structure. Ensure the structure of your JSON body matches the expected format explained in the template documentation. 4. Error Handling: The error message you provided points to a potential issue with how your inputs are being read. Review your error handling approach and ensure you're capturing and reacting to errors appropriately. 5. Test with Sample Data: Try using sample data provided within the template to see if it works correctly, thus confirming whether the issue lies with the data being inputted. 6. Look at Debugging Logs: If BuildShip provides logs for execution, try reviewing these to get a more detailed understanding of where things might be going wrong. If these steps don't resolve the issue, please reach out to BuildShip’s in-app support for further assistance, as they can provide more specific help tailored to your exact setup.
BuildShip AI Support
Solution
Gaurav Chadha
Gaurav Chadha2mo ago
Hi @hemax99#epic Streaming Assistant won't work in Test Mode, you'll be required to ship the workflow and then test it on your client-side (frontend) or use BuildShip's chat widget to verify streaming, also ensure you enable streaming in the chat widget. You can refer to this video - https://www.youtube.com/watch?v=H4xx_7M0TDQ. Also, please refrain from using such bad emojis in the request. 🙂