wergle
wergle2mo ago

wergle - In your streaming API for FlutterFlow ...

In your streaming API for FlutterFlow video, at around 11:24, you say that the third combine text field is 2 spaces and a "hard" return. And that will ensure that line breaks come through and display correctly. I'm not exactly sure what you mean by that. But places, like a numbered list, where you would expect a new line are not on a new line. The screenshot is from the end of the video and you can see that the numbered list runs together instead of each numbered item being a new line. I want to move to the BS FF streaming workflow, but the resulting output is too difficult to read. Any ideas on how to fix this?
No description
5 Replies
Harini
Harini2mo ago
@Stu - can you help guide here
wergle
wergle2mo ago
@Stu any suggestions?
Stu
Stu2mo ago
@wergle Yes, this is due to the specific way FlutterFlow requires streamed API responses to return chunks. What you need to put into the third combine text field is literally two presses of the space bar and a press of the return button. There isn't necessarily a "standard" streaming response right now, so we're looking into ways we can make this more streamlined for the user and aligning the return styles across not just Flutterflow but also the other low-code platforms that support streaming. In the interim, the FF Streaming workflow with Firebase/Supabase will achieve the same thing without these additions. (cc @Harini )
wergle
wergle2mo ago
Thanks @Stu . I've tested the FF Supabase workflow. I'm currently using the workflow from @thedigitalpro (uses non-streaming API), which includes a custom function and uses the BS streaming workflow. FF also released a video on using streaming API for a chat assistant. It uses a custom data type and a custom function (which they did not provide...). I look forward to what you guys come up with to improve the return styles. I appreciate all you guys are doing at BuildShip!
Stu
Stu2mo ago
@wergle Thanks! Certainly, watch this space, because it's rapidly evolving and there are a lot of ways to solve for the same problem. Always happy to help and glad you're enjoying building with BuildShip!