mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-19 07:42:43 +00:00
fix(mcp): change memories.delete to documents.delete for forget action (#737)
This commit is contained in:
parent
8287141bba
commit
1328c2ac3a
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ export class SupermemoryClient {
|
|||
|
||||
// Delete the most similar match
|
||||
const memoryToDelete = searchResult.results[0]
|
||||
await this.client.memories.delete(memoryToDelete.id)
|
||||
await this.client.documents.delete(memoryToDelete.id)
|
||||
|
||||
const memoryText = memoryToDelete.memory || memoryToDelete.content || ""
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue