Commit 95e4c12
committed
feat: separate OpenAI Chat Completions and Responses API handlers
- Created base OpenAIBaseHandler with shared logic (auth, retry, metrics)
- Split into OpenAIChatCompletionsHandler for Chat API
- Split into OpenAIResponsesHandler for Responses API
- OpenAiHandler now routes based on URL pattern and model type
- Maintains backward compatibility with existing tests
- Clear separation improves maintainability as APIs evolve
Addresses #82461 parent 0e1b23d commit 95e4c12
File tree
5 files changed
+1485
-406
lines changed- src/api/providers
- __tests__
5 files changed
+1485
-406
lines changed
0 commit comments