supermemory/packages
Ishaan Samantray cef7b3242b fix(openai-sdk): skip system prompt injection when no memories are found
add_system_prompt() modified the message list even when the memory
lookup returned nothing (memories == "").

- If an existing system prompt was present, " \n " (whitespace) was
  appended to its content.
- If no system prompt existed, a new {"role": "system", "content": ""}
  message was prepended.

Both cases pollute the conversation context with empty/whitespace tokens
that waste prompt budget and can confuse models sensitive to blank
system messages.

Fix: return messages unchanged when memories is falsy.
Adds a regression test covering both cases (with and without existing
system prompt).
2026-05-24 09:58:21 -04:00
..
agent-framework-python Add Supermemory integration for Microsoft Agent Framework (#775) 2026-03-10 01:49:45 +00:00
ai-sdk fix: username issue and bun lock issue (#818) 2026-03-31 21:41:25 +00:00
cartesia-sdk-python Update version to 0.1.1 (#862) 2026-04-16 18:57:14 -07:00
docs-test custom id implementation (#877) 2026-04-24 23:43:16 +00:00
hooks chore(nova): ux improvments (#820) 2026-04-02 18:20:34 +00:00
lib Add bulk space deletion (#951) 2026-05-16 20:51:00 -07:00
memory-graph fix: graph controls gap on compact viewports + model selector z-index (#982) 2026-05-23 08:47:19 -07:00
openai-sdk-python fix(openai-sdk): skip system prompt injection when no memories are found 2026-05-24 09:58:21 -04:00
pipecat-sdk-python chore: bump package versions 2026-01-22 20:50:51 -07:00
tools docs: @supermemory/tools v2.0.0 & migration guide (#886) 2026-04-27 18:24:59 +00:00
ui mobile responsiveness pass + connections reauth fix (#959) 2026-05-17 21:49:23 +00:00
validation Edit space names from selector (#949) 2026-05-16 20:14:19 -07:00