合并 feature/20251219_yjp 分支到 web 分支
* web: (11 commits)
update web
update web
update web
update web
update web
update web
Sync frontend project from dev-yjp branch
feat(web): Update auto-imports with new React hooks and components
feat:create cusotm text dataset
feat(web): update auto-imports with new React hooks and components
合并 feature/20251219_yjp 分支到 web 分支
Signed-off-by: zhaoying <zhaoying@redbearai.com>
Merged-by: zhaoying <zhaoying@redbearai.com>
CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/4
- Added API endpoints for prompt optimization:
* POST /prompt/sessions: Create a new prompt optimization session
* GET /prompt/sessions/{session_id}: Retrieve session message history
* POST /prompt/sessions/{session_id}/messages: Send message and get optimized prompt
* PUT /prompt/model: Create or update system prompt model configuration
- Added database models for prompt optimization:
* prompt_opt_session: Stores session metadata
* prompt_opt_session_history: Stores session message history
* prompt_opt_message: Stores user and assistant messages
* prompt_opt_model_config: Stores system prompt model configurations
- Updated service layer to handle message creation, prompt optimization, and variable parsing
- Added corresponding Pydantic schemas for request and response validation
- Updated web folder with latest frontend code
- Added new components: CreateContentModal, CreateContentModalExample
- Added new hook: useBreadcrumbManager
- Updated knowledge base components and views
- Updated i18n translations
- Various bug fixes and improvements
* [add]修改迁移文件新建空白表结构
* Add installation guide and environment setup
Added installation instructions and environment requirements for MemoryBear.
* [delete]删除api,web的readme.md。只保留唯一readme.md
* Fix database connection example in README
Update database connection configuration example in README.