fact_instruction 会整体替换当前值,而不是追加。它从下一次向项目中提取事实时开始生效,已经记录的事实保持不变。
所需权限:
project:modify路径参数
请求体
这份记忆是关于什么的、不包含什么,Markdown 格式,最多 2000 个字符。传空字符串可清空它,恢复内置默认值。起草项目事实提取说明可以帮你写一版。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X PATCH 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-8001856949ad4f6a5b6226f415ffa877/projects/proj-b93e8d95a8705bcc4ec42a65ba4cc7f8/settings' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"fact_instruction": "记录文档和命令行工具的使用方式。\n\n## 包括\n- 用户运行的命令及传入的参数\n- 用户阅读的文档页面及带着的问题\n\n## 不包括\n- 任何人的个人偏好"
}'
curl -X PATCH 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-8001856949ad4f6a5b6226f415ffa877/projects/proj-b93e8d95a8705bcc4ec42a65ba4cc7f8/settings' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"fact_instruction": ""
}'
{
"success": true,
"data": {
"fact_instruction": "记录文档和命令行工具的使用方式。\n\n## 包括\n- 用户运行的命令及传入的参数\n- 用户阅读的文档页面及带着的问题\n\n## 不包括\n- 任何人的个人偏好"
}
}
{
"success": false,
"message": "fact_instruction Fact instruction must not exceed 2000 characters",
"error_code": "INVALID_ARGUMENT"
}
设置或清空决定项目记忆记录哪些内容的说明
curl -X PATCH 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-8001856949ad4f6a5b6226f415ffa877/projects/proj-b93e8d95a8705bcc4ec42a65ba4cc7f8/settings' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"fact_instruction": "记录文档和命令行工具的使用方式。\n\n## 包括\n- 用户运行的命令及传入的参数\n- 用户阅读的文档页面及带着的问题\n\n## 不包括\n- 任何人的个人偏好"
}'
curl -X PATCH 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-8001856949ad4f6a5b6226f415ffa877/projects/proj-b93e8d95a8705bcc4ec42a65ba4cc7f8/settings' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"fact_instruction": ""
}'
{
"success": true,
"data": {
"fact_instruction": "记录文档和命令行工具的使用方式。\n\n## 包括\n- 用户运行的命令及传入的参数\n- 用户阅读的文档页面及带着的问题\n\n## 不包括\n- 任何人的个人偏好"
}
}
{
"success": false,
"message": "fact_instruction Fact instruction must not exceed 2000 characters",
"error_code": "INVALID_ARGUMENT"
}
PATCH /openapi/memorylake/api/v3/workspaces/{workspaceId}/projects/{projectId}/settings
fact_instruction 会整体替换当前值,而不是追加。它从下一次向项目中提取事实时开始生效,已经记录的事实保持不变。
project:modifycurl -X PATCH 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-8001856949ad4f6a5b6226f415ffa877/projects/proj-b93e8d95a8705bcc4ec42a65ba4cc7f8/settings' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"fact_instruction": "记录文档和命令行工具的使用方式。\n\n## 包括\n- 用户运行的命令及传入的参数\n- 用户阅读的文档页面及带着的问题\n\n## 不包括\n- 任何人的个人偏好"
}'
curl -X PATCH 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws-8001856949ad4f6a5b6226f415ffa877/projects/proj-b93e8d95a8705bcc4ec42a65ba4cc7f8/settings' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"fact_instruction": ""
}'
{
"success": true,
"data": {
"fact_instruction": "记录文档和命令行工具的使用方式。\n\n## 包括\n- 用户运行的命令及传入的参数\n- 用户阅读的文档页面及带着的问题\n\n## 不包括\n- 任何人的个人偏好"
}
}
{
"success": false,
"message": "fact_instruction Fact instruction must not exceed 2000 characters",
"error_code": "INVALID_ARGUMENT"
}