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

feat(presets): error handling #6775

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Conversation

pengx17
Copy link
Contributor

@pengx17 pengx17 commented Apr 16, 2024

Added predefined AIError that will be throw by implementations of AIProvider's actions.

There are two types of errors for now:

  • PaymentRequiredError: reported if affine server returns 402 error
  • GeneralNetworkError: all other errors

For callers of these actions, they will be required to handle these errors and render error prompt accordingly.
I have updated error handling logic & template in AIPanel in this PR.

Copy link

vercel bot commented Apr 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2024 6:57am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Apr 17, 2024 6:57am

Copy link

graphite-app bot commented Apr 16, 2024

Your org has enabled the Graphite merge queue for merging into master

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

Copy link
Contributor Author

pengx17 commented Apr 16, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @pengx17 and the rest of your teammates on Graphite Graphite

@pengx17 pengx17 enabled auto-merge (squash) April 17, 2024 06:40
@pengx17 pengx17 disabled auto-merge April 17, 2024 06:51
@pengx17 pengx17 enabled auto-merge (squash) April 17, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants