@viviedu/applet-sdk
    Preparing search index...

    Type Alias Model

    A model on the box, addressed by its family and variant, plus the sampling settings to generate with.

    type Model = {
        maxTokens?: number;
        temperature?: number;
        topK?: number;
        topP?: number;
    }
    Index

    Properties

    maxTokens?: number

    Limit on tokens generated, above 0 and at most 4096. Omit to use the default.

    temperature?: number

    Randomness of the sampling, at most 2. Zero is greedy, so the same prompt answers the same way every time. Omit to use the default.

    topK?: number

    Sample from the K likeliest tokens. Zero takes the cut off entirely and lets every token compete; 1 is greedy. Omit to use the default.

    topP?: number

    Sample from the likeliest tokens whose probabilities add up to this, at most 1. Omit to use the default.