Type alias CommonOptions

CommonOptions: {
    maxTokens?: number;
    sampler?: CreateSampler;
    temperature?: number;
    top_p?: number;
    validate?: {
        check?: ((partial) => boolean);
        retries?: number;
        transform?: ((partial) => string);
    };
}

Type declaration

  • Optional maxTokens?: number
  • Optional sampler?: CreateSampler
  • Optional temperature?: number
  • Optional top_p?: number
  • Optional validate?: {
        check?: ((partial) => boolean);
        retries?: number;
        transform?: ((partial) => string);
    }
    • Optional check?: ((partial) => boolean)
        • (partial): boolean
        • Parameters

          • partial: string

          Returns boolean

    • Optional retries?: number
    • Optional transform?: ((partial) => string)
        • (partial): string
        • Parameters

          • partial: string

          Returns string

Generated using TypeDoc