UNPKG

@visactor/vmind

Version:

<div align="center"> <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank"> <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/> </a> <a href="https://githu

28 lines (25 loc) 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.getData2ChartSchedule = void 0; const schedule_1 = require("../../schedule"), types_1 = require("../../types"), getData2ChartSchedule = (llm, options) => { var _a, _b; return !((null === (_a = llm.options.customRequestFunc) || void 0 === _a ? void 0 : _a.chartGenerate) || llm.options.model !== types_1.Model.CHART_ADVISOR && (null === (_b = llm.options) || void 0 === _b ? void 0 : _b.headers)) ? new schedule_1.Schedule([ types_1.AtomName.CHART_GENERATE ], { base: { llm: llm }, chartGenerate: { useChartAdvisor: !0 } }) : new schedule_1.Schedule([ types_1.AtomName.IMAGE_READER, types_1.AtomName.DATA_QUERY, types_1.AtomName.CHART_COMMAND, types_1.AtomName.CHART_GENERATE ], { base: { llm: llm, showThoughts: null == options ? void 0 : options.showThoughts }, chartCommand: { useDataTable: !0 } }); }; exports.getData2ChartSchedule = getData2ChartSchedule; //# sourceMappingURL=index.js.map