feat: opimize branch 2.0.5 #1016
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Please include a summary of the change, the problem it solves, the implementation approach, and relevant context. List any dependencies required for this change.
Related Issue (Required): feat #1014, fix #1012
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
start server:
uvicorn memos.api.server_api:app --host 0.0.0.0 --port 8001 --workers 1
curl -X POST http://localhost:8001/product/delete_memory_by_record_id
-H "Content-Type: application/json"
-d '{
"mem_cube_id": "user_123",
"record_id": "record_abc_456",
"hard_delete": false
}'
curl -X POST "http://0.0.0.0:8001/product/recover_memory_by_record_id"
-H "Content-Type: application/json"
-d '{
"mem_cube_id": "your_mem_cube_id",
"delete_record_id": "your_delete_record_id"
}'
curl -X POST "http://localhost:8001/product/get_all"
-H "Content-Type: application/json"
-d '{
"user_id": "user123",
"memory_type": "text_mem",
"search_query": "Python编程",
"search_type": "fulltext"
}'
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist
Reviewer Checklist