OpenAI model Trace back
##############################################
Traceback (most recent call last):
File "/home/v/inhouse/oai.py", line 8, in
openai = OpenAI(openai_api_key=api_key)
File "/home/v/.local/lib/python3.10/site-packages/langchain/load/serializable.py", line 90, in init
super().init(**kwargs)
File "pydantic/main.py", line 339, in pydantic.main.BaseModel.init
File "pydantic/main.py", line 1102, in pydantic.main.validate_model
File "/home/v/.local/lib/python3.10/site-packages/swarms/models/openai_models.py", line 256, in validate_environment
values["client"] = openai.Completion.create()
AttributeError: module 'openai' has no attribute 'Completion'. Did you mean: 'completions'?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too