Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /ai/language-model/language-model-params.tentative.https.window.html - WPT Dashboard Interop Dashboard
// META: title=Language Model Params
// META: script=/resources/testdriver.js
// META: script=../resources/util.js
// META: timeout=long
'use strict';
promise_test(async () => {
await ensureLanguageModel();
const params = await LanguageModel.params();
assert_true(!!params);
assert_equals(typeof params.maxTopK, "number");
assert_equals(typeof params.defaultTopK, "number");
assert_equals(typeof params.maxTemperature, "number");
assert_equals(typeof params.defaultTemperature, "number");
});