Grt1228/chatgpt-steam-output
A Spring Boot demo project that implements real-time streaming output for OpenAI ChatGPT using SSE and WebSocket protocols.

Velocity · 7d
+0.4
★ / day
Trend
→steady
star history
This project serves as a reference example for the chatgpt-java SDK, demonstrating how to implement server-sent events (SSE) and WebSocket-based streaming for ChatGPT responses. It provides support for both H5 and native mobile platforms, calculates token usage, and integrates with GPT-3.5-turbo and GPT-4 models through the OpenAI API.