phidata icon indicating copy to clipboard operation
phidata copied to clipboard

mypy check

Open hansipie opened this issue 9 months ago • 1 comments

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 :)

hansipie avatar May 16 '24 09:05 hansipie

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

ysolanky avatar May 16 '24 13:05 ysolanky