You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was merged into the main branch.
Discussion
----------
[Platform][OpenAI] Add AuthenticationException for better error handling
| Q | A
| ------------- | ---
| Branch? | main
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#528
| License | MIT
When OpenAI API returns 401 (authentication error), users now get a clear AuthenticationException with the actual API error message instead of the confusing "Response does not contain choices" error.
Changes:
- Add AuthenticationException class for API authentication failures
- Update OpenAI ResultConverter to check HTTP 401 status before processing
- Add test coverage for authentication error scenarios
Commits
-------
193b56a [Platform][OpenAI] remove incomplete `@author` tags from AuthenticationException
7da46cb [Platform][OpenAI] simplify authentication error test structure
56881ba [Platform][OpenAI] Add AuthenticationException for better error handling
0 commit comments