stream
option is set to true
), the response is in MIME type text/event-stream
. Otherwise, the content type is application/json
.
You can view the schema of the streamed sequence of chunk objects in streaming mode here.
You can explore examples on the Friendli Serverless Endpoints playground and adjust settings with just a few clicks.
Authorizations
Headers
ID of team to run requests as (optional parameter).
Body
application/json
Response
Successfully generated a chat response.
The response is of type object
.