@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
12 lines (11 loc) • 531 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.dxAskAi = void 0;
const app_config_1 = require("../../app.config");
const dx_api_1 = require("./dx-api");
async function dxAskAi(params, dxKey, options) {
if ((0, app_config_1.IsTest)())
return { status: 1, data: { choices: [] } };
return (0, dx_api_1.dxApi)({ url: "/ask-ai", data: params, method: "POST", dxKey, isDebugging: options === null || options === void 0 ? void 0 : options.isDebugging });
}
exports.dxAskAi = dxAskAi;