You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to consume REST API's which respond with Stream Response

Summary:

Hi Team,

Is there a way by which we can consume the REST API's which respond with Streams like for example the OCI Gen AI API : https://inference.generativeai.us-chicago-1.oci.oraclecloud.com/20231130/actions/generateText

In the above API Request when we set the isStream to true the response will be an eventStream.

But in VBCS we get the response back only after the complete response is there.

From OCI Playground :

From VBCS :


Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!