Skip to content

Commit c8108b4

Browse files
committed
Add maxTemperature
Closes #41.
1 parent b0751b9 commit c8108b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const slightlyHighTemperatureSession = await ai.assistant.create({
129129
temperature: Math.max(capabilities.defaultTemperature * 1.2, 1.0),
130130
});
131131

132-
// capabilities also contains defaultTopK and maxTopK.
132+
// capabilities also contains maxTemperature, defaultTopK, and maxTopK.
133133
```
134134

135135
### Session persistence and cloning
@@ -269,7 +269,7 @@ Note that regardless of the return value of `available`, `create()` might also f
269269

270270
The capabilities API also contains other information about the model:
271271

272-
* `defaultTemperature`, `defaultTopK`, and `maxTopK` properties giving information about the model's sampling parameters.
272+
* `defaultTemperature`, `maxTemperature`, `defaultTopK`, and `maxTopK` properties giving information about the model's sampling parameters.
273273
* `supportsLanguage(languageTag)`, which returns `"no"`, `"after-download"`, or `"readily"` to indicate whether the model supports conversing in a given human language.
274274

275275
### Download progress
@@ -363,6 +363,7 @@ interface AIAssistantCapabilities {
363363
readonly attribute unsigned long? defaultTopK;
364364
readonly attribute unsigned long? maxTopK;
365365
readonly attribute float? defaultTemperature;
366+
readonly attribute float? maxTemperature;
366367
367368
AICapabilityAvailability supportsLanguage(DOMString languageTag);
368369
};

0 commit comments

Comments
 (0)