mirror of https://github.com/aliasrobotics/cai.git
Update openai library version to avoid version-related issue
In particular:
Traceback (most recent call last):
File /Users/alias/Alias/research/openai-agents-python/examples/agent_patterns/litellm.py, line 4, in <module>
from agents import OpenAIChatCompletionsModel,Agent,Runner
File /Users/alias/Alias/research/openai-agents-python/src/agents/__init__.py, line 44, in <module>
from .models.openai_chatcompletions import OpenAIChatCompletionsModel
File /Users/alias/Alias/research/openai-agents-python/src/agents/models/openai_chatcompletions.py, line 57, in <module>
from openai.types.responses.response_usage import InputTokensDetails, OutputTokensDetails
ImportError: cannot import name 'InputTokensDetails' from 'openai.types.responses.response_usage' (/Users/alias/Alias/research/openai-agents-python/env/lib/python3.12/site-packages/openai/types/responses/response_usage.py). Did you mean: 'OutputTokensDetails'?
Signed-off-by: Víctor Mayoral Vilches <v.mayoralv@gmail.com>
This commit is contained in:
parent
09c2beefdc
commit
8189f331b6
|
|
@ -7,7 +7,7 @@ requires-python = ">=3.9"
|
|||
license = "MIT"
|
||||
authors = [{ name = "OpenAI", email = "support@openai.com" }]
|
||||
dependencies = [
|
||||
"openai>=1.66.5",
|
||||
"openai>=1.68.2",
|
||||
"pydantic>=2.10, <3",
|
||||
"griffe>=1.5.6, <2",
|
||||
"typing-extensions>=4.12.2, <5",
|
||||
|
|
|
|||
Loading…
Reference in New Issue