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

Anyio>4 support #921

Closed
1 task done
Shulyaka opened this issue Dec 2, 2023 · 4 comments
Closed
1 task done

Anyio>4 support #921

Shulyaka opened this issue Dec 2, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@Shulyaka
Copy link

Shulyaka commented Dec 2, 2023

Confirm this is a feature request for the Python library and not the underlying OpenAI API.

  • This is a feature request for the Python library

Describe the feature or improvement you're requesting

The project depends on anyio>=3.5.0,<4, however I would like to use it in a project that requires anyio==4.1.0

Additional context

https://pypi.org/project/anyio/#history

"anyio>=3.5.0, <4",

@rattrayalex
Copy link
Collaborator

Thanks, we'll look into whether there are any changes in 4.x that would cause problems and relax the restriction if not! It'd be helpful if you could try it out and report whether you encounter any issues.

We primarily use anyio through our dependency httpx, and this comment makes it seem that httpx should work well with anyio 4.x, so I imagine this will be safe to allow.

cc @RobertCraigie

@Shulyaka
Copy link
Author

Shulyaka commented Dec 3, 2023

I have tested image creation and chat completion with anyio==4.1.0 and it works fine for me

@RobertCraigie RobertCraigie added the enhancement New feature or request label Dec 4, 2023
@RobertCraigie
Copy link
Collaborator

This restriction will be lifted in the next release, #928.

@Shulyaka
Copy link
Author

Shulyaka commented Dec 4, 2023

Thank you!

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

No branches or pull requests

3 participants