Skip to content

Commit 3f5f9f5

Browse files
committed
refactor(ai): update AI module and dependencies
- Upgraded @ai-sdk/openai from version 1.3.23 to 2.0.23 and ai from 4.3.17 to 5.0.28 in package.json and pnpm-lock.yaml for enhanced functionality. - Removed the AIAgentController, AiDeepReadingController, and their associated services and DTOs to streamline the AI module. - Simplified the AiModule by retaining only essential services and controllers. - Updated the default AI model in configs.default.ts from 'gpt-4o-mini' to 'gpt-5o-mini' for improved performance. - Adjusted related dependencies and configurations to reflect these changes. Signed-off-by: Innei <tukon479@gmail.com>
1 parent 9979ebc commit 3f5f9f5

File tree

12 files changed

+47
-1421
lines changed

12 files changed

+47
-1421
lines changed

apps/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"changelog": true
4949
},
5050
"dependencies": {
51-
"@ai-sdk/openai": "1.3.23",
51+
"@ai-sdk/openai": "2.0.23",
5252
"@algolia/client-search": "^4.22.1",
5353
"@babel/core": "7.28.3",
5454
"@babel/plugin-transform-modules-commonjs": "7.27.1",
@@ -77,7 +77,7 @@
7777
"@typegoose/auto-increment": "4.13.0",
7878
"@typegoose/typegoose": "12.17.0",
7979
"@types/jsonwebtoken": "9.0.10",
80-
"ai": "4.3.17",
80+
"ai": "5.0.28",
8181
"algoliasearch": "4.24.0",
8282
"axios": "^1.10.0",
8383
"axios-retry": "4.5.0",
@@ -164,4 +164,4 @@
164164
"vite-tsconfig-paths": "5.1.4",
165165
"vitest": "1.5.2"
166166
}
167-
}
167+
}

apps/core/src/modules/ai/ai-agent/README.md

Lines changed: 0 additions & 148 deletions
This file was deleted.

apps/core/src/modules/ai/ai-agent/ai-agent.controller.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

apps/core/src/modules/ai/ai-agent/ai-agent.dto.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)