MemOS
MemOS copied to clipboard
docs: fix Quick Start examples in Chat & Message API docs to match MemOSClient signatures
Description
https://github.com/MemTensor/MemOS/pull/1742#pullrequestreview-4476453310
Fix the Chat and Message API reference docs where Quick Start code examples used parameters not present in the actual MemOSClient (see src/memos/api/client.py):
- chat/chat.md: replaced
readable_cube_ids/writable_cube_ids/modewithconversation_id/knowledgebase_idsto matchclient.chat()signature - feedback.md: replaced
history/writable_cube_ids/retrieved_memory_ids/corrected_answerwithconversation_idto matchclient.add_feedback() - get_suggestion_queries.md: replaced
MemOSClient.get_suggestions()(method does not exist) with rawrequests.post()call; removed duplicate H1 heading - feedback.md: fixed comment mismatch (said "occupation" but example was about diet)
Chinese source (docs/cn/) and English translation (docs/en/) aligned to stay in sync.
Also added English translations for Chat & Message API reference (inherited from previous PR, now synced with the corrected examples).
Related Issue (Required): Fixes #
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Refactor (does not change functionality, e.g. code style improvements, linting)
- [x] Documentation update
How Has This Been Tested?
- [ ] Unit Test
- [ ] Test Script Or Test Steps (please provide)
- [x] Pipeline Automated API Test (please provide)
Verified that:
- All examples use parameters matching
src/memos/api/client.pymethod signatures - Chinese and English files share identical API paths, parameter tables, and code blocks
- Markdown renders correctly
Checklist
- [x] I have performed a self-review of my own code | 我已自行检查了自己的代码
- [ ] I have commented my code in hard-to-understand areas | 我已在难以理解的地方对代码进行了注释
- [ ] I have added tests that prove my fix is effective or that my feature works | 我已添加测试以证明我的修复有效或功能正常
- [ ] I have created related documentation issue/PR in MemOS-Docs (if applicable) | 我已在 MemOS-Docs 中创建了相关的文档 issue/PR(如果适用)
- [ ] I have linked the issue to this PR (if applicable) | 我已将 issue 链接到此 PR(如果适用)
- [ ] I have mentioned the person who will review this PR | 我已提及将审查此 PR 的人
Reviewer Checklist
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] Made sure Checks passed
- [ ] Tests have been provided