-
Notifications
You must be signed in to change notification settings - Fork 6.8k
V4.14.4 features #6036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
V4.14.4 features #6036
Conversation
* add query optimize and bill * perf: query extension * fix: embe model * remove log * remove log * fix: test --------- Co-authored-by: xxyyh <2289112474@qq> Co-authored-by: archer <545436317@qq.com>
* feat: record user's language * feat: notice points/dataset indexes; support count limit; update docker-compose.yml * fix: ts error * feat: send auth code i18n * chore: dataset notice limit * chore: adjust * fix: ts * fix: countLimit race condition; i18n en-prefix locale fallback to en --------- Co-authored-by: archer <545436317@qq.com>
* feat: add ip region for chat logs * refactor: use Geolite2.mmdb * fix: export chat logs * fix: return location directly * test: add unit test
* plan frontend * plan limit * coupon * discount coupon * fix * type * fix audit * type * plan name * legacy plan * track * feat: add discount coupon * fix * fix discount coupon * openapi * type * type * env * api type * fix
* fix: replace gridfs multer operations with s3 compatible ops * wip: s3 features * refactor: remove gridfs * fix
|
There is too much information in the pull request to test. |
|
|
|
|
Preview mcp_server Image: |
Preview sandbox Image: |
Docs Preview:🚀 FastGPT Document Preview Ready! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces V4.14.4 features with significant refactoring of the test infrastructure, billing system enhancements, language preference management, and various API improvements.
Key Changes:
- Comprehensive test infrastructure reorganization with modularized mocks
- Enhanced billing system with discount coupons, bill cancellation, and repayment features
- User language preference persistence across login and settings
- Geolocation support for tracking user regions in chat logs
- Removal of legacy GridFS file handling in favor of S3-only storage
Reviewed changes
Copilot reviewed 189 out of 207 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| test/setup.ts | Refactored to remove inline mocks, simplified MongoDB connection handling |
| test/mocks/* | Modularized mock structure for better organization and reusability |
| projects/app/src/pages/api/support/user/account/loginByPassword.ts | Added language parameter to persist user language preference on login |
| projects/app/src/web/support/wallet/bill/api.ts | Enhanced with cancel bill and bill detail endpoints |
| projects/app/src/pageComponents/price/Standard.tsx | Added discount coupon integration and custom plan support |
| projects/app/src/pages/api/core/dataset/* | Migrated from GridFS to S3-only file storage |
| projects/app/src/pages/api/v1/chat/completions.ts | Added IP geolocation tracking and QPM metrics |
| projects/app/src/components/Select/I18nLngSelector.tsx | Added user preference persistence when changing language |
| projects/app/.env.template | Added new configuration options for S3, discount coupons, and app registration |
| projects/app/Dockerfile | Added GeoLite2-City.mmdb for geolocation support |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Preview fastgpt Image: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 192 out of 210 changed files in this pull request and generated 3 comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* chore: initv4144 * fix
* fix: new plans * qr modal tip
No description provided.