Skip to content

Python: agent-framework-core incompatible with OpenAI SDK v2.x (requires openai<2) #1421

@cystema

Description

@cystema

agent-framework-core incompatible with OpenAI SDK v2.x (requires openai<2)

Problem

agent-framework-core version 1.0.0b251007 has a dependency constraint openai>=1.99.0,<2 which blocks usage with the current stable OpenAI SDK v2.x (currently at v2.2.0+).

Impact

Users with existing projects using OpenAI SDK v2.x cannot adopt agent-framework without downgrading their OpenAI dependency, which would be a breaking change for their applications.

Environment

  • Package: agent-framework-core==1.0.0b251007
  • Current OpenAI SDK version: 2.2.0 (latest stable)
  • Python: 3.12
  • Installation method: pip install agent-framework-core --pre

Dependency Constraint Found

From agent_framework_core-1.0.0b251007.dist-info/METADATA:
Requires-Dist: openai>=1.99.0,<2

Error Encountered

When attempting to install alongside OpenAI SDK v2.x:
ERROR: Cannot install agent-framework-core and openai==2.2.0 because these package versions have conflicting dependencies.

Steps to Reproduce

  1. Create a fresh Python 3.12 environment
  2. Install OpenAI SDK v2: pip install openai>=2.0.0
  3. Try to install agent-framework: pip install agent-framework-core --pre
  4. Observe dependency conflict

Expected Behavior

agent-framework-core should be compatible with OpenAI SDK v2.x, as this is the current stable version of the OpenAI Python library.

Current Workaround

Downgrade to OpenAI SDK v1.x:

pip install "openai>=1.99.0,<2"
pip install agent-framework-core --pre
However, this breaks compatibility with existing code using OpenAI v2.x features.
Request
Please update agent-framework-core to support openai>=1.99.0,<3 or openai>=2.0.0 to ensure compatibility with the latest stable OpenAI SDK.

Metadata

Metadata

Assignees

Labels

model clientsIssues related to the model client implementationspython

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions