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):
Tagged:
0