Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of empty choices array in Azure OpenAI API integration
This commit refines the error handling for the Azure OpenAI API integration to address the 'n.choices[0] is undefined' error by ensuring 'data.choices' and 'data.choices[0]' are properly checked before access. This update is necessary due to the behavior changes introduced in the API version update (#684), which can result in empty 'choices' arrays. Fix #698.
- Loading branch information