feat: add CNBChat adapter for CNB API integration

- Introduced CNBChat class in src/provider/chat-adapter/cnb.ts to handle interactions with the CNB API.
- Updated chat.ts to export CNBChat for use in the application.
- CNBChat includes methods for querying the CNB API with customizable parameters.
This commit is contained in:
2026-01-19 04:33:13 +08:00
parent 31cc0c42d8
commit 998be4cb41
4 changed files with 76 additions and 362 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@kevisual/ai",
"version": "0.0.20",
"version": "0.0.21",
"description": "AI Center Services",
"main": "index.js",
"basename": "/root/ai-center-services",
@@ -53,13 +53,13 @@
}
},
"devDependencies": {
"@kevisual/router": "0.0.52",
"@kevisual/types": "^0.0.10",
"@kevisual/use-config": "^1.0.21",
"@types/bun": "^1.3.5",
"@kevisual/router": "0.0.55",
"@kevisual/types": "^0.0.11",
"@kevisual/use-config": "^1.0.28",
"@types/bun": "^1.3.6",
"@types/crypto-js": "^4.2.2",
"@types/formidable": "^3.4.6",
"@types/node": "^25.0.5",
"@types/node": "^25.0.9",
"cross-env": "^10.1.0",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.19",