- Added context cancellation handling in the OpenAI provider's Stream and Post methods, allowing for graceful termination of operations when the context is cancelled. - Implemented a new test, TestOpenAIStreamContextCancellation, to validate that streaming respects context cancellation, ensuring proper error handling and event emission during cancellation scenarios. - Refactored context usage in existing methods to improve consistency and reliability in handling context across streaming operations. |
||
|---|---|---|
| .. | ||
| openai.go | ||
| openai_test.go | ||
| types.go | ||