File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ async function topLevel() {
186186 expectedInputLanguages : [ "en" ] ,
187187 expectedContextLanguages : [ "en" ] ,
188188 outputLanguage : "en" ,
189+ preference : "auto" ,
189190 sharedContext : "foo" ,
190191 signal : ( new AbortController ( ) ) . signal ,
191192 monitor ( m : CreateMonitor ) {
Original file line number Diff line number Diff line change @@ -204,6 +204,8 @@ type LanguageModelMessageValue = ImageBitmapSource | AudioBuffer | BufferSource
204204// Writing Assistance APIs
205205// https://webmachinelearning.github.io/writing-assistance-apis/#idl-index
206206
207+ type PerformancePreference = "auto" | "speed" | "capability" ;
208+
207209declare abstract class Summarizer implements DestroyableModel {
208210 static create ( options ?: SummarizerCreateOptions ) : Promise < Summarizer > ;
209211 static availability ( options ?: SummarizerCreateCoreOptions ) : Promise < Availability > ;
@@ -231,6 +233,7 @@ interface SummarizerCreateCoreOptions {
231233 type ?: SummarizerType ;
232234 format ?: SummarizerFormat ;
233235 length ?: SummarizerLength ;
236+ preference ?: PerformancePreference ;
234237
235238 expectedInputLanguages ?: ReadonlyArray < string > ;
236239 expectedContextLanguages ?: ReadonlyArray < string > ;
You can’t perform that action at this time.
0 commit comments