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
* Rename from supportsInputLanguage() to languageAvailable(), to match the language detection API. Closes#7. (See also webmachinelearning/translation-api#19.)
* Consolidate the various supportsXYZ() methods into a single createOptionsAvailable() method. This avoids the issue noted in webmachinelearning/translation-api#19, aligns us with the "available" suffix, and most importantly, lets a browser signal that it doesn't support certain combinations. (For example, Chrome right now doesn't support some combinations for the writer API.)
// We're good! Let's do the summarization using the built-in API.
@@ -174,7 +174,7 @@ if (supportsTeaser !== "no") {
174
174
}
175
175
```
176
176
177
-
In addition to methods to check if options (like `type` for summarizer, or `tone` for rewriter) are supported, all three APIs' capabilities objects have an additional method, `supportsInputLanguage(languageTag)`, which can be used to tell whether the model supports input and context in the given human language. It has the same three return values.
177
+
In addition to methods to check if options (like `type` for summarizer, or `tone` for rewriter) are supported, all three APIs' capabilities objects have an additional method, `languageAvailable(languageTag)`, which can be used to tell whether the model supports input and context in the given human language. It has the same three return values.
0 commit comments