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

Specify summarization, destruction, and options #18

Merged
merged 2 commits into from
Dec 6, 2024
Merged

Specify summarization, destruction, and options #18

merged 2 commits into from
Dec 6, 2024

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented Nov 27, 2024

This is most of the remaining normative text for the summarizer API.


Preview | Diff

This is most of the remaining normative text for the summarizer API.
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
<th>{{DOMException}} [=DOMException/name=]
<th>Scenarios
<tbody>
<tr>
Copy link

Choose a reason for hiding this comment

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

Chromium is currently reporting InvalidStateError if the backend session is destroyed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

How can the backend session be destroyed? Is it via the destroy() method or the AbortSignal? Then it should be an AbortError. Or is there some other possibility?

Copy link

Choose a reason for hiding this comment

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

It is caused by the backend aborting itself. Maybe we'd like to have another error type for backend failures or simply use UnknownError instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you know why the backend would abort itself? Like, how would I trigger that as a user or developer?

But yes, I think UnknownError might be best for such cases.

@domenic domenic merged commit 4edf3f1 into main Dec 6, 2024
2 checks passed
@domenic domenic deleted the summarize branch December 6, 2024 04:32
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.

3 participants