UNPKG

pyb-ts

Version:

PYB-CLI - Minimal AI Agent with multi-model support and CLI interface

42 lines (41 loc) 992 B
import React from "react"; import { ModelConfig } from "@components/ModelConfig"; import { enableConfigs } from "@utils/config"; import { triggerModelConfigChange } from "@messages"; const help = "Change your AI provider and model settings"; const description = "Change your AI provider and model settings"; const isEnabled = true; const isHidden = false; const name = "model"; const type = "local-jsx"; function userFacingName() { return name; } async function call(onDone, context) { const { abortController } = context; enableConfigs(); abortController?.abort?.(); return /* @__PURE__ */ React.createElement( ModelConfig, { onClose: () => { import("@utils/model").then(({ reloadModelManager }) => { reloadModelManager(); triggerModelConfigChange(); onDone(); }); } } ); } export { call, description, help, isEnabled, isHidden, name, type, userFacingName }; //# sourceMappingURL=model.js.map