crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[FEATURE] Responses API for Azure, Bedrock, Gemini, Anthropic

Open kpeteln opened this issue 8 months ago • 5 comments

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

kpeteln avatar Mar 19 '26 16:03 kpeteln

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.

github-actions[bot] avatar Apr 19 '26 12:04 github-actions[bot]

This is still relevant.

kpeteln avatar Apr 19 '26 13:04 kpeteln

@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):

  1. feat(anthropic): add Responses API support
  2. feat(gemini): add Responses API support
  3. 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.

cty-ut avatar May 14 '26 17:05 cty-ut

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.

github-actions[bot] avatar Jun 14 '26 12:06 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jun 19 '26 13:06 github-actions[bot]