fix: The issue of the file name being stored as part of the memory as well #1222
Open
whipser030 wants to merge 2 commits intoMemTensor:dev-20260309-v2.0.9from
Open
fix: The issue of the file name being stored as part of the memory as well #1222whipser030 wants to merge 2 commits intoMemTensor:dev-20260309-v2.0.9from
whipser030 wants to merge 2 commits intoMemTensor:dev-20260309-v2.0.9from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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): Fixes #1221 #1223
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
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
#1221
curl --location --request POST 'http://127.0.0.1:8002/product/add'
--header 'Content-Type: application/json'
--data-raw '{
"user_id": "test_0313",
"writable_cube_ids": ["test_0313_cube"],
"async_mode": "async",
"messages": [
{
"file": {
"file_data": "https://cdn.memtensor.com.cn/file/1773129771959_4lbzs9.txt",
"file_id": "0313file",
"filename": "0313file.txt"
},
"type": "file"
}
],
"allow_public":"false"
}'
After the above file is uploaded, the memory addition operation only records the file content, but does not record the "uploading of XX file" action.
#1223
curl --location --request POST 'http://127.0.0.1:8002/product/add'
--header 'Content-Type: application/json'
--data-raw '{
"user_id": "test_0314",
"writable_cube_ids": [
"test_0314_cube"
],
"async_mode": "async",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "本次 Beta 上线以“验证核心价值”为首要目标,阶段性关注用户真实使用场景与反馈质量,而非用户规模增长。上线后两周内将重点跟踪留存率、核心功能使用频次及关键负反馈类型,并在每周例会上进行数据复盘。如核心指标未达预期,将优先调整产品体验与定位策略,而非加大推广投入。"
},
{
"type": "file",
"file": {
"file_data": "https://cdn.memtensor.com.cn/file/1772452920110_z9w5j6.docx"
}
}
]
},
{
"role": "assistant",
"content": "好的,需要我为您解答吗?"
}
],
"allow_public": "false"
}'
After the asynchronous process has completed, by querying the memory, it can be found that the document information in the content list has also been stored as memory.
Checklist
Reviewer Checklist