API Endpoint
The API endpoint for obtaining a streaming response is:Request Body
To get a streaming response, you need to send a POST request to the API endpoint with a JSON request. Here’s an example JSON request:- bot_id (string): ID of your bot.
- message (string): Message from the user.
- chat_history (list): List of the chat history with
sender_type
andcontent
.
Example Request
Here are example commands to obtain a streaming response using the ChatFly API:Response Body
The streaming response is as follows:- string (string): A string of the response.
