yao/agent/llm/providers/openai
Max 8636b0c842 Enhance context cancellation support in OpenAI provider and tests
- 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.
2025-11-15 15:43:57 +08:00
..
openai.go Enhance context cancellation support in OpenAI provider and tests 2025-11-15 15:43:57 +08:00
openai_test.go Enhance context cancellation support in OpenAI provider and tests 2025-11-15 15:43:57 +08:00
types.go Implement stream lifecycle events in OpenAI provider 2025-11-15 15:32:49 +08:00