phidatahq / phidata

Build AI Assistants with memory, knowledge and tools.
https://docs.phidata.com
Mozilla Public License 2.0
10.47k stars 1.51k forks source link

mypy check #258

Closed hansipie closed 1 day ago

hansipie commented 1 month ago

Hello

According to the 'mypy' check: phi\assistant\openai\assistant.py:122: error: "Assistant" has no attribute "file_ids" [attr-defined] phi\assistant\openai\run.py:131: error: "Run" has no attribute "file_ids" [attr-defined]

Indeed, I believe the OpenAIAssistan API has changed, but i didn't find any proof. However, those attributes are no longer present... https://platform.openai.com/docs/api-reference/runs/object https://platform.openai.com/docs/api-reference/assistants/object

I'll make a PR asap, but if you are faster then me go ahead :)

PS: This project is awesome ! Thank you :)

ysolanky commented 1 month ago

@hansipie You are right. OpenAI has made some changes to their package resulting in these mypy errors. Feel free to make a PR :)