- Completely restructure NewOpenAI method to handle different message types more robustly - Add support for new ChatCompletionChunk type to parse streaming responses - Improve error handling and message type detection - Simplify message processing logic with more explicit type checking - Remove commented-out legacy code and improve overall readability |
||
|---|---|---|
| .. | ||
| openai.go | ||
| openai_test.go | ||
| process.go | ||
| process_test.go | ||
| types.go | ||