Skip to content

FIX: adapt error message extractor to the new format #1507

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

Merged

Conversation

frascuchon
Copy link
Contributor

Recently, I've seen some chatCompletion errors rendered as "[object Object]". Doing some debugging, I see the returned error object does not contain error or details attributes, but message (See image attached).

I've changed the codebase to support this attribute.

Captura de pantalla 2025-06-02 a las 10 47 49

@julien-c
Copy link
Member

julien-c commented Jun 2, 2025

LGTM, do you remember which provider(s) returned this error?

@frascuchon
Copy link
Contributor Author

yep. I mainly saw this using cerebras

Copy link
Contributor

@SBrandeis SBrandeis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(resolved a merge conflict due to #1504, should be good to merge now)

@Wauplin Wauplin merged commit 474e4ef into huggingface:main Jun 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants