Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mypy check #258

Open
hansipie opened this issue May 16, 2024 · 1 comment
Open

mypy check #258

hansipie opened this issue May 16, 2024 · 1 comment
Assignees

Comments

@hansipie
Copy link

hansipie commented May 16, 2024

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

@jacobweiss2305 jacobweiss2305 self-assigned this May 16, 2024
@ysolanky
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants