microsoft / promptflow

Build high-quality LLM apps - from prototyping, testing to production deployment and monitoring.
https://microsoft.github.io/promptflow/
MIT License
8.32k stars 712 forks source link

Smaller retry count for UnprocessableEntityError(422) #3127

Closed chjinche closed 1 week ago

chjinche commented 1 week ago

Description

Issue: OpenAI suggest retry on UnprocessableEntityError(422) https://platform.openai.com/docs/guides/error-codes/python-library-error-types while MaaS returns 422 with non-retriable error.

Solution: Smaller retry count for 422.

All Promptflow Contribution checklist:

General Guidelines and Best Practices

Testing Guidelines