Skip to content

fix(openai-sdk-python): support supermemory 3.50 type and API renames#1295

Open
shitcodebykaushik wants to merge 1 commit into
supermemoryai:mainfrom
shitcodebykaushik:fix/openai-sdk-python-supermemory-3.50
Open

fix(openai-sdk-python): support supermemory 3.50 type and API renames#1295
shitcodebykaushik wants to merge 1 commit into
supermemoryai:mainfrom
shitcodebykaushik:fix/openai-sdk-python-supermemory-3.50

Conversation

@shitcodebykaushik

Copy link
Copy Markdown

Summary

  • Migrate supermemory-openai-sdk to the supermemory 3.50 client API so a fresh pip install supermemory-openai-sdk no longer fails on import.
  • Replace removed types MemoryAddResponse / MemoryGetResponse with AddResponse / DocumentGetResponse.
  • Route memory writes through client.add(...) instead of the removed client.memories.add(...) (tools + middleware).
  • Pin supermemory>=3.50.0, raise requires-python to >=3.9 (required by supermemory 3.50), refresh uv.lock, and bump package version to 1.0.5.
  • Add API-key-free regression tests that assert package import and the new client.add call sites.

Test plan

  • pip install -e . against supermemory 3.50.0 — import supermemory_openai succeeds
  • pytest tests/test_import_compat.py — 4 passed
  • Maintainer: publish supermemory-openai-sdk 1.0.5 to PyPI after merge

Fixes #1235

Fresh pip installs pull supermemory 3.50, which renamed MemoryAddResponse
and MemoryGetResponse and moved document creation to client.add(). The
package failed to import and memory writes used a removed API surface.

Migrate tools and middleware to AddResponse/DocumentGetResponse and
client.add(), pin supermemory>=3.50.0 (Python 3.9+), and add import
compatibility regression tests.

Fixes supermemoryai#1235
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

supermemory-openai-sdk fails to import with the latest supermemory (3.50)

1 participant