[FEATURE] Responses API for Azure, Bedrock, Gemini, Anthropic
Feature Area
Core functionality
Is your feature request related to a an existing bug? Please link it here.
Support for the Responses API was added for OpenAI in this commit: https://github.com/crewAIInc/crewAI/commit/c4c92082297187ce01d917a9d24461f082b3109b#diff-4534b083df8dcb0882f6a62e0b98ce2520bcdde53d04a43b6488d0322485aefc in this file: https://github.com/crewAIInc/crewAI/blob/c4c92082297187ce01d917a9d24461f082b3109b/lib/crewai/src/crewai/llms/providers/openai/completion.py
If any other providers are used, the Responses API is not supported. This is a problem, as many new models don't support the Completions API any more.
Describe the solution you'd like
For consistency, the solution should be implemented similarly to how it was implemented here for OpenAI: https://github.com/crewAIInc/crewAI/blob/c4c92082297187ce01d917a9d24461f082b3109b/lib/crewai/src/crewai/llms/providers/openai/completion.py
Describe alternatives you've considered
No response
Additional context
No response
Willingness to Contribute
No, I'm just suggesting the idea
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This is still relevant.
@greysonlalonde Saw your comment on #4958 about reopening this. It's been a bit and I'd like to help close it out. Proposal — split into 3 separate PRs (mirroring the Azure implementation in #5201 which you merged):
- feat(anthropic): add Responses API support
- feat(gemini): add Responses API support
- feat(bedrock): add Responses API support
Each PR will mirror the shape of
providers/openai/completion.py(c4c9208) and stay under the 500 LOC size/L threshold. OK to proceed in this order? Starting with Anthropic.
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.