File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ tokenizers >= 0.21.1 # Required for fast incremental detokenization.
1212protobuf # Required by LlamaTokenizer.
1313fastapi[standard] >= 0.115.0 # Required by FastAPI's form models in the OpenAI API server's audio transcriptions endpoint.
1414aiohttp
15- openai >= 1.99.1, < 1.100.0 # For Responses API with reasoning content
15+ openai >= 1.99.1 # For Responses API with reasoning content
1616pydantic >= 2.10
1717prometheus_client >= 0.18.0
1818pillow # Required for image processing
Original file line number Diff line number Diff line change 1818cloudpickle
1919fastapi
2020msgspec
21- openai < 1.100.0
21+ openai
2222openai-harmony
2323partial-json-parser
2424pillow
Original file line number Diff line number Diff line change 2020from openai .types .responses import (ResponseFunctionToolCall ,
2121 ResponseInputItemParam , ResponseOutputItem ,
2222 ResponsePrompt , ResponseReasoningItem ,
23- ResponseStatus , ResponseTextConfig )
23+ ResponseStatus )
24+
25+ # Backward compatibility for OpenAI client versions
26+ try : # For older openai versions (< 1.100.0)
27+ from openai .types .responses import ResponseTextConfig
28+ except ImportError : # For newer openai versions (>= 1.100.0)
29+ from openai .types .responses import (ResponseFormatTextConfig as
30+ ResponseTextConfig )
31+
2432from openai .types .responses .response import ToolChoice
2533from openai .types .responses .tool import Tool
2634from openai .types .shared import Metadata , Reasoning
You can’t perform that action at this time.
0 commit comments