新功能: - 创建AI聊天助手组件(AIChatWidget) - 支持文字+图片多模态对话 - 集成Gemini AI API - 支持图片编辑和内容生成 - 实时对话历史管理 - 优雅的UI设计,支持黑夜模式 技术实现: - 后端API代理Gemini API(/api/ai-chat) - 支持最多5张图片上传 - 流式响应处理 - 对话历史管理 - Base64图片处理 配置: - 在.env中添加Gemini API配置 - GEMINI_API_KEY - GEMINI_API_BASE_URL - GEMINI_MODEL 替换原弹幕功能,提供更强大的AI助手体验!
71 lines
2.1 KiB
JSON
Executable File
71 lines
2.1 KiB
JSON
Executable File
{
|
|
"name": "@volcengine/openapi",
|
|
"version": "1.28.1",
|
|
"description": "火山引擎OpenAPI SDK nodejs版",
|
|
"main": "lib/index.js",
|
|
"engines": {
|
|
"node": ">=12"
|
|
},
|
|
"scripts": {
|
|
"cp:tls-proto": "cp src/services/tls/tls.proto lib/services/tls/tls.proto",
|
|
"cp:tls-lz4": "cp src/services/tls/lz4.js lib/services/tls/lz4.js",
|
|
"build": "rm -rf lib && tsc && yarn cp:tls-proto && yarn cp:tls-lz4",
|
|
"lint": "eslint . --ext ts --fix --quiet",
|
|
"dev": "tsc --watch",
|
|
"dev:proxy": "VOLC_PROXY_PORT=8888 yarn dev",
|
|
"test": "yarn build && jest --env=node",
|
|
"test-mq": "jest ./test/rocketmq.test.js --env=node",
|
|
"test-maas": "jest ./test/maas.test.js --env=node",
|
|
"test-tls": "jest ./test/tls.test.js --env=node"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:volcengine/volc-sdk-nodejs.git"
|
|
},
|
|
"author": "",
|
|
"license": "Apache-2.0",
|
|
"devDependencies": {
|
|
"@babel/preset-env": "^7.16.4",
|
|
"@babel/preset-typescript": "^7.12.7",
|
|
"@commitlint/cli": "^11.0.0",
|
|
"@commitlint/config-conventional": "^11.0.0",
|
|
"@types/ajv": "^1.0.0",
|
|
"@types/crypto-js": "^4.2.0",
|
|
"@types/debug": "^4.1.5",
|
|
"@types/jest": "^26.0.19",
|
|
"@types/node-fetch": "^2.5.7",
|
|
"@typescript-eslint/eslint-plugin": "^4.10.0",
|
|
"@typescript-eslint/parser": "^4.10.0",
|
|
"ajv": "^7.0.2",
|
|
"eslint": "^7.16.0",
|
|
"eslint-config-prettier": "^4.3.0",
|
|
"eslint-plugin-babel": "^5.3.1",
|
|
"eslint-plugin-jest": "^22.6.4",
|
|
"eslint-plugin-prettier": "^3.1.0",
|
|
"eslint-plugin-react": "^7.18.3",
|
|
"husky": "^4.3.6",
|
|
"jest": "^26.6.3",
|
|
"lodash.merge": "^4.6.2",
|
|
"prettier": "^2.2.1",
|
|
"typescript": "^4.1.3"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^0.21.1",
|
|
"crc": "^4.1.0",
|
|
"crypto-js": "^4.2.0",
|
|
"dayjs": "^1.11.5",
|
|
"debug": "^4.3.1",
|
|
"form-data": "^3.0.0",
|
|
"lodash.get": "^4.4.2",
|
|
"p-limit": "^3.0.0",
|
|
"protobufjs": "7.2.5",
|
|
"uuid": "^8.3.2"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"commit-msg": "commitlint -e $GIT_PARAMS",
|
|
"pre-commit": "yarn lint"
|
|
}
|
|
}
|
|
}
|