@llumiverse/common
Version:
Public types, enums and options used by Llumiverse API.
35 lines • 1.92 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.textOptionsFallback = void 0;
const types_js_1 = require("../types.js");
exports.textOptionsFallback = {
_option_id: "text-fallback",
options: [
{
name: types_js_1.SharedOptions.max_tokens, type: types_js_1.OptionType.numeric, min: 1,
integer: true, step: 200, description: "The maximum number of tokens to generate"
},
{
name: types_js_1.SharedOptions.temperature, type: types_js_1.OptionType.numeric, min: 0.0, default: 0.7,
integer: false, step: 0.1, description: "A higher temperature biases toward less likely tokens, making the model more creative"
},
{
name: types_js_1.SharedOptions.top_p, type: types_js_1.OptionType.numeric, min: 0, max: 1,
integer: false, step: 0.1, description: "Limits token sampling to the cumulative probability of the top p tokens"
},
{
name: types_js_1.SharedOptions.top_k, type: types_js_1.OptionType.numeric, min: 1,
integer: true, step: 1, description: "Limits token sampling to the top k tokens"
},
{
name: types_js_1.SharedOptions.presence_penalty, type: types_js_1.OptionType.numeric, min: -2.0, max: 2.0,
integer: false, step: 0.1, description: "Penalise tokens if they appear at least once in the text"
},
{
name: types_js_1.SharedOptions.frequency_penalty, type: types_js_1.OptionType.numeric, min: -2.0, max: 2.0,
integer: false, step: 0.1, description: "Penalise tokens based on their frequency in the text"
},
{ name: types_js_1.SharedOptions.stop_sequence, type: types_js_1.OptionType.string_list, value: [], description: "The generation will halt if one of the stop sequences is output" },
]
};
//# sourceMappingURL=fallback.js.map