mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
bug fix
This commit is contained in:
parent
21fbcf0037
commit
587a8692cd
1 changed files with 3 additions and 1 deletions
|
|
@ -236,11 +236,13 @@ export const buildMemoriesText = async (
|
|||
} = options
|
||||
|
||||
// Fetch profile data when mode includes profile (profile or full)
|
||||
// Note: We don't send queryText here - profile endpoint is only for static/dynamic memories.
|
||||
// Query-based search is handled separately by the SDK search functions.
|
||||
let profileData: ProfileStructure | null = null
|
||||
if (mode !== "query") {
|
||||
profileData = await supermemoryProfileSearch(
|
||||
containerTag,
|
||||
mode === "profile" ? "" : queryText, // Only send query for full mode
|
||||
"", // No query - profile is for static/dynamic only
|
||||
baseUrl,
|
||||
apiKey,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue