Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ litellm = ["litellm>=1.75.9,<2.0.0", "openai>=1.68.0,<1.110.0"]
llamaapi = ["llama-api-client>=0.1.0,<1.0.0"]
mistral = ["mistralai>=1.8.2"]
ollama = ["ollama>=0.4.8,<1.0.0"]
openai = ["openai>=1.68.0,<2.0.0"]
openai = ["openai>=1.68.0,<3.0.0"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: The upper bound <3.0.0 is very permissive and allows all openai v2.x versions. OpenAI SDK v2.0.0 introduced breaking changes (e.g., ResponseFunctionToolCallOutputItem.output return type changed).

Suggestion: Consider either:

  1. A more conservative upper bound like <2.22.0 (matching the PR title) until compatibility is fully verified
  2. Explicitly documenting that v2.x compatibility has been tested

Has the SDK been tested against openai v2.x to verify there are no runtime issues?

writer = ["writer-sdk>=2.2.0,<3.0.0"]
sagemaker = [
"boto3-stubs[sagemaker-runtime]>=1.26.0,<2.0.0",
"openai>=1.68.0,<2.0.0", # SageMaker uses OpenAI-compatible interface
"openai>=1.68.0,<3.0.0", # SageMaker uses OpenAI-compatible interface
]
otel = ["opentelemetry-exporter-otlp-proto-http>=1.30.0,<2.0.0"]
docs = [
Expand Down
Loading