You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** @deprecated Restricted to web extension contexts only. Use the topK option within LanguageModel.create() is now restricted to web extensions. */
121
-
topK?: number;
122
-
/** @deprecated Restricted to web extension contexts only. Use the temperature option within LanguageModel.create() is now restricted to web extensions. */
123
-
temperature?: number;
124
-
119
+
typeLanguageModelSamplingMode=
120
+
|"most-predictable"
121
+
|"predictable"
122
+
|"balanced"
123
+
|"creative"
124
+
|"most-creative";
125
+
126
+
/**
127
+
* samplingMode and the raw sampling params (topK, temperature) are mutually exclusive.
128
+
* Providing both results in a TypeError at runtime.
129
+
* Note: topK and temperature are only available in Chrome extension contexts (Chrome 151+).
0 commit comments