Skip to content

Commit e29bfb0

Browse files
feat(api): api update
1 parent 2ba3fd7 commit e29bfb0

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-c60ddacf028eaf07846338d6250d69ae74b2c156607ca63f9978a4837fa5b6bf.yml
3-
openapi_spec_hash: a31e2b339c01ee2aec626bd2560c2bc4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-2091b697eac6eb77423744c42a9ca703a0f22d10df340f7b5803ed49cc52273f.yml
3+
openapi_spec_hash: 0d17fed9af68bed3e4f6060591ff1917
44
config_hash: 4bcc46df5333a2be6812a59a40afdb5e

src/supermemory/resources/documents.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,9 @@ def upload_file(
482482
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
483483
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
484484
485-
use_advanced_processing: Use advanced processing with Reducto for better PDF extraction and chunking.
486-
This costs 3x tokens but provides superior quality for complex documents.
485+
use_advanced_processing: DEPRECATED: This field is no longer used. Advanced PDF processing is now
486+
automatic with our hybrid Mistral OCR + Gemini pipeline. This parameter will be
487+
accepted but ignored for backwards compatibility.
487488
488489
extra_headers: Send extra headers
489490
@@ -963,8 +964,9 @@ async def upload_file(
963964
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
964965
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
965966
966-
use_advanced_processing: Use advanced processing with Reducto for better PDF extraction and chunking.
967-
This costs 3x tokens but provides superior quality for complex documents.
967+
use_advanced_processing: DEPRECATED: This field is no longer used. Advanced PDF processing is now
968+
automatic with our hybrid Mistral OCR + Gemini pipeline. This parameter will be
969+
accepted but ignored for backwards compatibility.
968970
969971
extra_headers: Send extra headers
970972

src/supermemory/resources/memories.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,9 @@ def upload_file(
470470
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
471471
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
472472
473-
use_advanced_processing: Use advanced processing with Reducto for better PDF extraction and chunking.
474-
This costs 3x tokens but provides superior quality for complex documents.
473+
use_advanced_processing: DEPRECATED: This field is no longer used. Advanced PDF processing is now
474+
automatic with our hybrid Mistral OCR + Gemini pipeline. This parameter will be
475+
accepted but ignored for backwards compatibility.
475476
476477
extra_headers: Send extra headers
477478
@@ -940,8 +941,9 @@ async def upload_file(
940941
mime_type: Required when fileType is 'image' or 'video'. Specifies the exact MIME type to
941942
use (e.g., 'image/png', 'image/jpeg', 'video/mp4', 'video/webm')
942943
943-
use_advanced_processing: Use advanced processing with Reducto for better PDF extraction and chunking.
944-
This costs 3x tokens but provides superior quality for complex documents.
944+
use_advanced_processing: DEPRECATED: This field is no longer used. Advanced PDF processing is now
945+
automatic with our hybrid Mistral OCR + Gemini pipeline. This parameter will be
946+
accepted but ignored for backwards compatibility.
945947
946948
extra_headers: Send extra headers
947949

src/supermemory/types/document_upload_file_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ class DocumentUploadFileParams(TypedDict, total=False):
4444
"""
4545

4646
use_advanced_processing: Annotated[str, PropertyInfo(alias="useAdvancedProcessing")]
47-
"""Use advanced processing with Reducto for better PDF extraction and chunking.
47+
"""DEPRECATED: This field is no longer used.
4848
49-
This costs 3x tokens but provides superior quality for complex documents.
49+
Advanced PDF processing is now automatic with our hybrid Mistral OCR + Gemini
50+
pipeline. This parameter will be accepted but ignored for backwards
51+
compatibility.
5052
"""

src/supermemory/types/memory_upload_file_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ class MemoryUploadFileParams(TypedDict, total=False):
4444
"""
4545

4646
use_advanced_processing: Annotated[str, PropertyInfo(alias="useAdvancedProcessing")]
47-
"""Use advanced processing with Reducto for better PDF extraction and chunking.
47+
"""DEPRECATED: This field is no longer used.
4848
49-
This costs 3x tokens but provides superior quality for complex documents.
49+
Advanced PDF processing is now automatic with our hybrid Mistral OCR + Gemini
50+
pipeline. This parameter will be accepted but ignored for backwards
51+
compatibility.
5052
"""

0 commit comments

Comments
 (0)