Skip to content

Commit 32d6e80

Browse files
author
Mike Wasserman
committed
Address comments
1 parent e740436 commit 32d6e80

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

index.bs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ typedef (
306306
<div algorithm>
307307
The static <dfn method for="LanguageModel">availability(|options|)</dfn> method steps are:
308308

309-
1. Return the result of [=computing AI model availability=] given |options|, "language-model", [=validate and canonicalize language model options=], and [=compute language model options availability=].
309+
1. Return the result of [=computing AI model availability=] given |options|, "{{language-model}}", [=validate and canonicalize language model options=], and [=compute language model options availability=].
310310
</div>
311311

312312
<div algorithm>
@@ -348,27 +348,27 @@ typedef (
348348

349349
1. If there is some error attempting to determine whether the user agent [=model availability/can support=] prompting a language model, which the user agent believes to be transient (such that re-querying could stop producing such an error), then return null.
350350

351-
1. If the user agent [=model availability/currently supports=] prompting a language model, then return {{Availability/available}}.
351+
1. If the user agent [=model availability/currently supports=] prompting a language model, then return "{{Availability/available}}".
352352

353-
1. If the user agent believes it will be able to [=model availability/support=] prompting a language model, but only after finishing a download that is already ongoing, then return {{Availability/downloading}}.
353+
1. If the user agent believes it will be able to [=model availability/support=] prompting a language model, but only after finishing a download that is already ongoing, then return "{{Availability/downloading}}".
354354

355-
1. If the user agent believes it will be able to [=model availability/support=] prompting a language model, but only after performing a not-currently-ongoing download, then return {{Availability/downloadable}}.
355+
1. If the user agent believes it will be able to [=model availability/support=] prompting a language model, but only after performing a not-currently-ongoing download, then return "{{Availability/downloadable}}".
356356

357-
1. Otherwise, return {{Availability/unavailable}}.
357+
1. Otherwise, return "{{Availability/unavailable}}".
358358
</div>
359359

360360
<div algorithm>
361361
The <dfn>language model content type availability</dfn> given a {{LanguageModelMessageType}} |type| and a boolean |isInput|, is given by the following steps. They return an {{Availability}} value.
362362

363363
1. [=Assert=]: this algorithm is running [=in parallel=].
364364

365-
1. If the user agent [=model availability/currently supports=] |type| as an input if |isInput| is true, or as an output if |isInput| is false, then return {{Availability/available}}.
365+
1. If the user agent [=model availability/currently supports=] |type| as an input if |isInput| is true, or as an output if |isInput| is false, then return "{{Availability/available}}".
366366

367-
1. If the user agent believes it will be able to [=model availability/support=] |type| as such, but only after finishing a download that is already ongoing, then return {{Availability/downloading}}.
367+
1. If the user agent believes it will be able to [=model availability/support=] |type| as such, but only after finishing a download that is already ongoing, then return "{{Availability/downloading}}".
368368

369-
1. If the user agent believes it will be able to [=model availability/support=] |type| as such, but only after performing a not-currently-ongoing download, then return {{Availability/downloadable}}.
369+
1. If the user agent believes it will be able to [=model availability/support=] |type| as such, but only after performing a not-currently-ongoing download, then return "{{Availability/downloadable}}".
370370

371-
1. Otherwise, return {{Availability/unavailable}}.
371+
1. Otherwise, return "{{Availability/unavailable}}".
372372
</div>
373373

374374
<h3 id="the-languagemodel-class">The {{LanguageModel}} class</h3>

0 commit comments

Comments
 (0)