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.10.0"
".": "3.11.0"
}
6 changes: 3 additions & 3 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%2Fsupermemory-new-c42d5f3942d6e32b6d1ed95d40bf6cca87aa8c715343444b97e0c68d44646878.yml
openapi_spec_hash: 952074229d1f810fe95aeee711db8ca4
config_hash: fc55f26858b03415a5838ec2731c1cc3
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-eef92a68d48cbd0da30cae650e608f5114a52305f81c4deea56ef42e4a0ec05b.yml
openapi_spec_hash: 5b9e4ea9387648b156fdcfea9651ff58
config_hash: a69d5c502ffbfb11a2c8ec61ca5823e9
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 3.11.0 (2025-12-11)

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

### Features

* **api:** api update ([b4b239e](https://github.com/supermemoryai/python-sdk/commit/b4b239ef02d6c8018d761a2d660cd2182a10dde8))

## 3.10.0 (2025-12-10)

Full Changelog: [v3.9.0...v3.10.0](https://github.com/supermemoryai/python-sdk/compare/v3.9.0...v3.10.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.10.0"
version = "3.11.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.10.0" # x-release-please-version
__version__ = "3.11.0" # x-release-please-version
10 changes: 10 additions & 0 deletions src/supermemory/resources/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ def upload_file(
file_type: str | Omit = omit,
metadata: str | Omit = omit,
mime_type: str | Omit = omit,
use_advanced_processing: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -481,6 +482,9 @@ def upload_file(
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')

use_advanced_processing: Use advanced processing with Reducto for better PDF extraction and chunking.
This costs 3x tokens but provides superior quality for complex documents.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -496,6 +500,7 @@ def upload_file(
"file_type": file_type,
"metadata": metadata,
"mime_type": mime_type,
"use_advanced_processing": use_advanced_processing,
}
)
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
Expand Down Expand Up @@ -928,6 +933,7 @@ async def upload_file(
file_type: str | Omit = omit,
metadata: str | Omit = omit,
mime_type: str | Omit = omit,
use_advanced_processing: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -957,6 +963,9 @@ async def upload_file(
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')

use_advanced_processing: Use advanced processing with Reducto for better PDF extraction and chunking.
This costs 3x tokens but provides superior quality for complex documents.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -972,6 +981,7 @@ async def upload_file(
"file_type": file_type,
"metadata": metadata,
"mime_type": mime_type,
"use_advanced_processing": use_advanced_processing,
}
)
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
Expand Down
10 changes: 10 additions & 0 deletions src/supermemory/resources/memories.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ def upload_file(
file_type: str | Omit = omit,
metadata: str | Omit = omit,
mime_type: str | Omit = omit,
use_advanced_processing: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -469,6 +470,9 @@ def upload_file(
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')

use_advanced_processing: Use advanced processing with Reducto for better PDF extraction and chunking.
This costs 3x tokens but provides superior quality for complex documents.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -484,6 +488,7 @@ def upload_file(
"file_type": file_type,
"metadata": metadata,
"mime_type": mime_type,
"use_advanced_processing": use_advanced_processing,
}
)
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
Expand Down Expand Up @@ -905,6 +910,7 @@ async def upload_file(
file_type: str | Omit = omit,
metadata: str | Omit = omit,
mime_type: str | Omit = omit,
use_advanced_processing: str | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -934,6 +940,9 @@ async def upload_file(
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')

use_advanced_processing: Use advanced processing with Reducto for better PDF extraction and chunking.
This costs 3x tokens but provides superior quality for complex documents.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -949,6 +958,7 @@ async def upload_file(
"file_type": file_type,
"metadata": metadata,
"mime_type": mime_type,
"use_advanced_processing": use_advanced_processing,
}
)
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
Expand Down
6 changes: 6 additions & 0 deletions src/supermemory/types/document_upload_file_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ class DocumentUploadFileParams(TypedDict, total=False):
Specifies the exact MIME type to use (e.g., 'image/png', 'image/jpeg',
'video/mp4', 'video/webm')
"""

use_advanced_processing: Annotated[str, PropertyInfo(alias="useAdvancedProcessing")]
"""Use advanced processing with Reducto for better PDF extraction and chunking.

This costs 3x tokens but provides superior quality for complex documents.
"""
6 changes: 6 additions & 0 deletions src/supermemory/types/memory_upload_file_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ class MemoryUploadFileParams(TypedDict, total=False):
Specifies the exact MIME type to use (e.g., 'image/png', 'image/jpeg',
'video/mp4', 'video/webm')
"""

use_advanced_processing: Annotated[str, PropertyInfo(alias="useAdvancedProcessing")]
"""Use advanced processing with Reducto for better PDF extraction and chunking.

This costs 3x tokens but provides superior quality for complex documents.
"""
2 changes: 2 additions & 0 deletions tests/api_resources/test_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ def test_method_upload_file_with_all_params(self, client: Supermemory) -> None:
file_type="image",
metadata='{"category": "technology", "isPublic": true, "readingTime": 5}',
mime_type="mimeType",
use_advanced_processing="true",
)
assert_matches_type(DocumentUploadFileResponse, document, path=["response"])

Expand Down Expand Up @@ -867,6 +868,7 @@ async def test_method_upload_file_with_all_params(self, async_client: AsyncSuper
file_type="image",
metadata='{"category": "technology", "isPublic": true, "readingTime": 5}',
mime_type="mimeType",
use_advanced_processing="true",
)
assert_matches_type(DocumentUploadFileResponse, document, path=["response"])

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_memories.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ def test_method_upload_file_with_all_params(self, client: Supermemory) -> None:
file_type="image",
metadata='{"category": "technology", "isPublic": true, "readingTime": 5}',
mime_type="mimeType",
use_advanced_processing="true",
)
assert_matches_type(MemoryUploadFileResponse, memory, path=["response"])

Expand Down Expand Up @@ -788,6 +789,7 @@ async def test_method_upload_file_with_all_params(self, async_client: AsyncSuper
file_type="image",
metadata='{"category": "technology", "isPublic": true, "readingTime": 5}',
mime_type="mimeType",
use_advanced_processing="true",
)
assert_matches_type(MemoryUploadFileResponse, memory, path=["response"])

Expand Down