yao/openapi/chat
Max b43929210e Implement event message handling and enhance output capabilities
- Added support for lifecycle event messages, including a new event type for tracking stream states (e.g., stream_start, stream_end).
- Introduced a NewEventMessage function to create event messages with structured properties.
- Updated the output package to include event messages in the built-in types, ensuring compatibility with CUI clients while remaining silent for OpenAI clients.
- Enhanced the DefaultStreamHandler to utilize event messages for better lifecycle tracking during streaming operations.
- Improved error handling and logging in the OpenAI provider to capture and report streaming errors effectively.
2025-11-16 10:30:55 +08:00
..
chat.go Refactor context handling in agent API and assistant methods 2025-11-10 17:30:53 +08:00
completions.go Implement event message handling and enhance output capabilities 2025-11-16 10:30:55 +08:00
types.go Refactor context handling in agent API and assistant methods 2025-11-10 17:30:53 +08:00