SSE debugging
Initiating an SSE Connection
Apidog Version Should Be 2.3.10 or higher.
Create a New Endpoint
In Apidog, start by creating a new HTTP project. Then, add a new endpoint and enter the URL for the AI model's endpoint.
Send the Request
Upon sending the request, if the response header
Content-Type
includes text/event-stream
, Apidog will automatically parse the returned data as SSE events.View Real-time Responses
You can see the real-time messages in the
Timeline
view of the response panel, where the content can be displayed in natural language.Auto-Merge Message
Apidog Version Should Be 2.6.49 or higher.
Customize Merging Rules
Auto-Merge
feature does not work properly, you can take the following measures based on the actual situation:1. Configure JSONPath Extraction Rules
data: {"choices":[{"index":0,"message":{"role":"assistant","content":"H"},"logprobs":null,"finish_reason":"stop"}]}
data: {"choices":[{"index":0,"message":{"role":"assistant","content":"i"},"logprobs":null,"finish_reason":"stop"}]}
content
field, use this JSONPath configuration: $.choices[0].message.content
.$
refers to the root of the JSONchoices[0]
selects the first element of the choices arraymessage.content
specifies the content attribute under the message object of that element.Hi
2. Use Post Processor Script
FAQ
Learn More
Modified at 2025-03-12 03:23:10