Skip to content
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

chore: handle all UnhandledMatchErrors #467

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chris-lee-lb
Copy link

What:

  • Bug Fix
  • New Feature

Description:

Our sentry has been logged many times UnhandledMatchError with class ThreadRunStepResponseToolCallsStepDetails.

截圖 2024-08-20 下午6 57 08

So this PR try to throw wrapped exception like ThreadRunStreamResponse does for all matches.

Related:

N/A

@gehrisandro
Copy link
Collaborator

Hi @chris-lee-lb

Thank you for your PR.

In my opinion, it would be better to handle the types properly instead of throwing an exception.

The problem is, that according to the specs, there shouldn't be a different type.

Could you please provide some steps to reproduce the issue?

@gehrisandro gehrisandro self-assigned this Aug 20, 2024
@chris-lee-lb
Copy link
Author

@gehrisandro sorry for later reply.

And unfortunately we can not reproduce the issue easily, we only occasionally see this error in our sentry platform (https://www.sentry.io), but the sentry doesn't record what http response was actually received, so I can't give you any further debug information.

So my intention of this PR is to use the new Exception to allow the sentry to record the unprocessed type content, so that it can be continuously corrected.

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.

2 participants