Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.6.0"
".": "3.7.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 18
configured_endpoints: 19
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-ebd5e757d0e76cb83013e01a1e0bb3dba62beb83b2a2ffa28d148ea032e96fd0.yml
openapi_spec_hash: f930474a6ad230545154244045cc602e
config_hash: 5bc39292a7e2f871b35cdebbecd9f022
config_hash: ec08a36e60458b4d83e71798a8043484
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 3.7.0 (2025-11-26)

Full Changelog: [v3.6.0...v3.7.0](https://github.com/supermemoryai/python-sdk/compare/v3.6.0...v3.7.0)

### Features

* **api:** manual updates ([ee2daac](https://github.com/supermemoryai/python-sdk/commit/ee2daac3a0c1a085971a71ef9605d1d4f6fdb3f7))
* **api:** manual updates ([89a6e6d](https://github.com/supermemoryai/python-sdk/commit/89a6e6d1220cd8fd2c38d1c54f412650913a9184))
* **api:** manual updates ([7f0b5aa](https://github.com/supermemoryai/python-sdk/commit/7f0b5aa308004d68b5620f6956068e0c7fbc20da))
* **api:** manual updates ([3f2f954](https://github.com/supermemoryai/python-sdk/commit/3f2f954a542c4f2e6fc7d6e204c7e44fe640ec7d))
* **api:** manual updates ([8680e72](https://github.com/supermemoryai/python-sdk/commit/8680e723f9bd9cdc930ed33914557dc60d5242c0))

## 3.6.0 (2025-11-26)

Full Changelog: [v3.5.0...v3.6.0](https://github.com/supermemoryai/python-sdk/compare/v3.5.0...v3.6.0)
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ from supermemory import Supermemory
client = Supermemory()

try:
client.memories.add(
client.add(
content="content",
)
except supermemory.APIConnectionError as e:
Expand Down Expand Up @@ -205,7 +205,7 @@ client = Supermemory(
)

# Or, configure per-request:
client.with_options(max_retries=5).memories.add(
client.with_options(max_retries=5).add(
content="content",
)
```
Expand All @@ -230,7 +230,7 @@ client = Supermemory(
)

# Override per-request:
client.with_options(timeout=5.0).memories.add(
client.with_options(timeout=5.0).add(
content="content",
)
```
Expand Down Expand Up @@ -273,13 +273,13 @@ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to
from supermemory import Supermemory

client = Supermemory()
response = client.memories.with_raw_response.add(
response = client.with_raw_response.add(
content="content",
)
print(response.headers.get('X-My-Header'))

memory = response.parse() # get the object that `memories.add()` would have returned
print(memory.id)
client = response.parse() # get the object that `add()` would have returned
print(client.id)
```

These methods return an [`APIResponse`](https://github.com/supermemoryai/python-sdk/tree/main/src/supermemory/_response.py) object.
Expand All @@ -293,7 +293,7 @@ The above interface eagerly reads the full response body when you make the reque
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.

```python
with client.memories.with_streaming_response.add(
with client.with_streaming_response.add(
content="content",
) as response:
print(response.headers.get("X-My-Header"))
Expand Down
11 changes: 9 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Shared Types
# Supermemory

Types:

```python
from supermemory.types import And, Or
from supermemory.types import AddResponse, ProfileResponse
```

Methods:

- <code title="post /v3/documents">client.<a href="./src/supermemory/_client.py">add</a>(\*\*<a href="src/supermemory/types/client_add_params.py">params</a>) -> <a href="./src/supermemory/types/add_response.py">AddResponse</a></code>
- <code title="post /v4/profile">client.<a href="./src/supermemory/_client.py">profile</a>(\*\*<a href="src/supermemory/types/client_profile_params.py">params</a>) -> <a href="./src/supermemory/types/profile_response.py">ProfileResponse</a></code>

# Memories

Types:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "supermemory"
version = "3.6.0"
version = "3.7.0"
description = "The official Python library for the supermemory API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
Loading
Loading