promptflow icon indicating copy to clipboard operation
promptflow copied to clipboard

[Feature Request] Remove version constraint for Flask

Open pamelafox opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

This package currently pins the upper version of Flask to <3: https://github.com/microsoft/promptflow/blob/main/src/promptflow/setup.py#L26

That means I can't bring this package into my app that uses Flask 3+

Describe the solution you'd like

Please remove the upper version of Flask. You could add tests/nightly tests to check compatibility if you're worried about future backward incompatibility.

Describe alternatives you've considered

You could remove PromptFlow's dependency on Flask entirely, but it seems as if you're using it for a local REST server or something.

In that case, I'd recommend at least moving to Quart or FastAPI, since async frameworks are a better fit for ChatGPT dependent apps, in my experience. (I wrote up more in this post: http://blog.pamelafox.org/2023/09/best-practices-for-openai-chat-apps.html)

pamelafox avatar Nov 20 '23 22:11 pamelafox

Hi @pamelafox , thanks for reporting! We'll test if it's compatible with our package then bump it.

D-W- avatar Nov 21 '23 02:11 D-W-

just relax the flask to 4.0.0, however there is flask-restx dependency which is restricting the flask version.

We relax all these dependencies on our package.

crazygao avatar Nov 30 '23 06:11 crazygao