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

24 lines (22 loc) 901 B
import { Schedule } from "../../schedule"; import { AtomName, Model } from "../../types"; export const getData2ChartSchedule = (llm, options) => { var _a, _b; return !((null === (_a = llm.options.customRequestFunc) || void 0 === _a ? void 0 : _a.chartGenerate) || llm.options.model !== Model.CHART_ADVISOR && (null === (_b = llm.options) || void 0 === _b ? void 0 : _b.headers)) ? new Schedule([ AtomName.CHART_GENERATE ], { base: { llm: llm }, chartGenerate: { useChartAdvisor: !0 } }) : new Schedule([ AtomName.IMAGE_READER, AtomName.DATA_QUERY, AtomName.CHART_COMMAND, AtomName.CHART_GENERATE ], { base: { llm: llm, showThoughts: null == options ? void 0 : options.showThoughts }, chartCommand: { useDataTable: !0 } }); }; //# sourceMappingURL=index.js.map