mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
ca69316446
- 在 CLI 命令中添加 knowledgeSearch 和 knowledgeChat 两个新命令 - 新增 knowledge 搜索命令,支持多模态图像检索及对话历史上下文传递 - 新增 knowledge 问答命令,支持多轮消息流式回答及多模态输入 - 在核心客户端库(core)中添加对应的 API 端点和类型定义 - 知识库检索接口 retrieve 标注为弃用,推荐使用 search 命令替代 - 更新 kscli 主程序入口,接入新命令并兼容旧命令 - 补充 e2e 测试覆盖 knowledge search 和 knowledge chat 的各类边界与流程 - 更新文档及命令示例,实现使用说明同步最新功能 - 增加测试配置,改善 E2E 测试环境与超时设置
33 lines
552 B
TypeScript
33 lines
552 B
TypeScript
import { defineConfig } from "vite-plus";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globalSetup: "./tests/e2e/global-setup.ts",
|
|
testTimeout: 60_000,
|
|
hookTimeout: 60_000,
|
|
},
|
|
pack: {
|
|
entry: {
|
|
kscli: "src/main.ts",
|
|
},
|
|
hash: false,
|
|
minify: true,
|
|
platform: "node",
|
|
banner: "#!/usr/bin/env node\n",
|
|
outputOptions: {
|
|
codeSplitting: false,
|
|
},
|
|
dts: {
|
|
tsgo: true,
|
|
},
|
|
exports: true,
|
|
},
|
|
lint: {
|
|
options: {
|
|
typeAware: true,
|
|
typeCheck: true,
|
|
},
|
|
},
|
|
fmt: {},
|
|
});
|