UNPKG

@llumiverse/common

Version:

Public types, enums and options used by Llumiverse API.

37 lines 1.96 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getGroqOptions = getGroqOptions; const types_js_1 = require("../types.js"); const fallback_js_1 = require("./fallback.js"); function getGroqOptions(model, _option) { if (model.includes("deepseek") && model.includes("r1")) { const commonOptions = [ { name: types_js_1.SharedOptions.max_tokens, type: types_js_1.OptionType.numeric, min: 1, max: 131072, integer: true, 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, max: 2.0, integer: false, step: 0.1, description: "A higher temperature biases toward less likely tokens, making the model more creative. A lower temperature than other models is recommended for deepseek R1, 0.3-0.7 approximately.", }, { 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.stop_sequence, type: types_js_1.OptionType.string_list, value: [], description: "The generation will halt if one of the stop sequences is output", }, { name: "reasoning_format", type: types_js_1.OptionType.enum, enum: { "Parsed": "parsed", "Raw": "raw", "Hidden": "hidden" }, default: "parsed", description: "Controls how the reasoning is returned.", }, ]; return { _option_id: "groq-deepseek-thinking", options: commonOptions, }; } return fallback_js_1.textOptionsFallback; } //# sourceMappingURL=groq.js.map