@google/genai 1.29.0 → 1.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/genai.d.ts +22 -0
- package/dist/index.cjs +28 -2
- package/dist/index.mjs +28 -2
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +28 -2
- package/dist/node/index.mjs +28 -2
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +22 -0
- package/dist/web/index.mjs +28 -2
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +22 -0
- package/package.json +1 -1
package/dist/web/web.d.ts
CHANGED
|
@@ -5637,6 +5637,28 @@ export declare interface Model {
|
|
|
5637
5637
|
defaultCheckpointId?: string;
|
|
5638
5638
|
/** The checkpoints of the model. */
|
|
5639
5639
|
checkpoints?: Checkpoint[];
|
|
5640
|
+
/** Temperature value used for sampling set when the dataset was saved.
|
|
5641
|
+
This value is used to tune the degree of randomness. */
|
|
5642
|
+
temperature?: number;
|
|
5643
|
+
/** The maximum temperature value used for sampling set when the
|
|
5644
|
+
dataset was saved. This value is used to tune the degree of randomness. */
|
|
5645
|
+
maxTemperature?: number;
|
|
5646
|
+
/** Optional. Specifies the nucleus sampling threshold. The model
|
|
5647
|
+
considers only the smallest set of tokens whose cumulative probability is
|
|
5648
|
+
at least `top_p`. This helps generate more diverse and less repetitive
|
|
5649
|
+
responses. For example, a `top_p` of 0.9 means the model considers tokens
|
|
5650
|
+
until the cumulative probability of the tokens to select from reaches 0.9.
|
|
5651
|
+
It's recommended to adjust either temperature or `top_p`, but not both. */
|
|
5652
|
+
topP?: number;
|
|
5653
|
+
/** Optional. Specifies the top-k sampling threshold. The model
|
|
5654
|
+
considers only the top k most probable tokens for the next token. This can
|
|
5655
|
+
be useful for generating more coherent and less random text. For example,
|
|
5656
|
+
a `top_k` of 40 means the model will choose the next word from the 40 most
|
|
5657
|
+
likely words. */
|
|
5658
|
+
topK?: number;
|
|
5659
|
+
/** Whether the model supports thinking features. If true, thoughts are
|
|
5660
|
+
returned only if the model supports thought and thoughts are available. */
|
|
5661
|
+
thinking?: boolean;
|
|
5640
5662
|
}
|
|
5641
5663
|
|
|
5642
5664
|
export declare class Models extends BaseModule {
|