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.45.0"
".": "3.46.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: 26
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-00a4c56b1ae197e7ddbeae4fe05ae0864d282829f1f9ee8601f39ea3859969d3.yml
openapi_spec_hash: 27f6e2fad48855513fa4d8b18b25e249
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-c602bac0c6d453b4c4699348569c3e0f1264bb94dac5a312464fcbd41f0bd0c5.yml
openapi_spec_hash: 9e8e8093f200aa49ec05b9b61a51a7aa
config_hash: cde97ef3188581c5f4924c633ec33ddb
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 3.46.0 (2026-06-08)

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

### Features

* **api:** api update ([79ca8d5](https://github.com/supermemoryai/python-sdk/commit/79ca8d500f2e91fa8bb7d621fd06337715641400))

## 3.45.0 (2026-06-03)

Full Changelog: [v3.44.0...v3.45.0](https://github.com/supermemoryai/python-sdk/compare/v3.44.0...v3.45.0)
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.45.0"
version = "3.46.0"
description = "The official Python library for the supermemory API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/supermemory/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "supermemory"
__version__ = "3.45.0" # x-release-please-version
__version__ = "3.46.0" # x-release-please-version
14 changes: 14 additions & 0 deletions src/supermemory/resources/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ def upload_file(
container_tag: str | Omit = omit,
container_tags: str | Omit = omit,
custom_id: str | Omit = omit,
dreaming: Literal["instant", "dynamic"] | Omit = omit,
entity_context: str | Omit = omit,
filepath: str | Omit = omit,
file_type: str | Omit = omit,
Expand Down Expand Up @@ -565,6 +566,11 @@ def upload_file(
custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
hyphens, underscores, and colons only.

dreaming: Processing mode. "dynamic" (default) groups related documents together so
memories form from coherent, logical units rather than one isolated entry at a
time. "instant" processes each document on its own right away, and bills one
extra operation per document.

entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
document processing to guide memory extraction.

Expand Down Expand Up @@ -608,6 +614,7 @@ def upload_file(
"container_tag": container_tag,
"container_tags": container_tags,
"custom_id": custom_id,
"dreaming": dreaming,
"entity_context": entity_context,
"filepath": filepath,
"file_type": file_type,
Expand Down Expand Up @@ -1131,6 +1138,7 @@ async def upload_file(
container_tag: str | Omit = omit,
container_tags: str | Omit = omit,
custom_id: str | Omit = omit,
dreaming: Literal["instant", "dynamic"] | Omit = omit,
entity_context: str | Omit = omit,
filepath: str | Omit = omit,
file_type: str | Omit = omit,
Expand Down Expand Up @@ -1161,6 +1169,11 @@ async def upload_file(
custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with
hyphens, underscores, and colons only.

dreaming: Processing mode. "dynamic" (default) groups related documents together so
memories form from coherent, logical units rather than one isolated entry at a
time. "instant" processes each document on its own right away, and bills one
extra operation per document.

entity_context: Optional entity context for this container tag. Max 1500 characters. Used during
document processing to guide memory extraction.

Expand Down Expand Up @@ -1204,6 +1217,7 @@ async def upload_file(
"container_tag": container_tag,
"container_tags": container_tags,
"custom_id": custom_id,
"dreaming": dreaming,
"entity_context": entity_context,
"filepath": filepath,
"file_type": file_type,
Expand Down
9 changes: 9 additions & 0 deletions src/supermemory/types/document_upload_file_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ class DocumentUploadFileParams(TypedDict, total=False):
Max 100 characters, alphanumeric with hyphens, underscores, and colons only.
"""

dreaming: Literal["instant", "dynamic"]
"""Processing mode.

"dynamic" (default) groups related documents together so memories form from
coherent, logical units rather than one isolated entry at a time. "instant"
processes each document on its own right away, and bills one extra operation per
document.
"""

entity_context: Annotated[str, PropertyInfo(alias="entityContext")]
"""Optional entity context for this container tag.

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ def test_method_upload_file_with_all_params(self, client: Supermemory) -> None:
container_tag="user",
container_tags="containerTags",
custom_id="mem_abc123",
dreaming="instant",
entity_context="User's name is {XYZ}",
filepath="/documents/reports/file.pdf",
file_type="image",
Expand Down Expand Up @@ -931,6 +932,7 @@ async def test_method_upload_file_with_all_params(self, async_client: AsyncSuper
container_tag="user",
container_tags="containerTags",
custom_id="mem_abc123",
dreaming="instant",
entity_context="User's name is {XYZ}",
filepath="/documents/reports/file.pdf",
file_type="image",
Expand Down