We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa45f9d commit 944f131Copy full SHA for 944f131
README.md
@@ -185,10 +185,14 @@ const customSession = await ai.languageModel.create({
185
186
const capabilities = await ai.languageModel.capabilities();
187
const slightlyHighTemperatureSession = await ai.languageModel.create({
188
- temperature: Math.max(capabilities.defaultTemperature * 1.2, 1.0),
+ temperature: Math.max(
189
+ capabilities.defaultTemperature * 1.2,
190
+ capabilities.maxTemperature
191
+ ),
192
+ topK: 10
193
});
194
-// capabilities also contains maxTemperature, defaultTopK, and maxTopK.
195
+// capabilities also contains defaultTopK and maxTopK.
196
```
197
198
### Session persistence and cloning
0 commit comments