本次提交主要实现了以下功能: - 添加自定义API集成支持,通过环境变量配置 - 实现流式输出功能,支持优化、迭代和测试场景 - 重构 OutputPanel 组件,支持流式渲染 - 更新 LLM 服务,增加流式消息发送方法 - 优化错误处理和状态管理 - 调整 Vite 配置,支持路径别名和公共目录 - 添加 Element Plus 和 Pinia 测试依赖 主要技术改进: - 使用 LangChain 流式 API - 实现跨组件的流式数据传输 - 增强用户交互体验
41 lines
1.0 KiB
JSON
41 lines
1.0 KiB
JSON
{
|
|
"name": "prompt-optimizer-v3",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest",
|
|
"test:ui": "vitest --ui",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:unit": "vitest run tests/unit"
|
|
},
|
|
"dependencies": {
|
|
"@langchain/anthropic": "^0.3.12",
|
|
"@langchain/core": "^0.3.33",
|
|
"@langchain/google-genai": "^0.1.6",
|
|
"@langchain/openai": "^0.3.17",
|
|
"dotenv": "^16.4.7",
|
|
"element-plus": "^2.9.3",
|
|
"js-yaml": "^4.1.0",
|
|
"langchain": "^0.3.12",
|
|
"vue": "^3.5.13"
|
|
},
|
|
"devDependencies": {
|
|
"@pinia/testing": "^0.1.7",
|
|
"@tailwindcss/forms": "^0.5.10",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"@vitejs/plugin-basic-ssl": "^1.2.0",
|
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
"@vue/test-utils": "^2.4.6",
|
|
"autoprefixer": "^10.4.20",
|
|
"jsdom": "^26.0.0",
|
|
"postcss": "^8.5.1",
|
|
"tailwindcss": "^3.4.17",
|
|
"vite": "^6.0.7",
|
|
"vitest": "^3.0.2"
|
|
}
|
|
}
|