Skip to content

Commit 2a12ab8

Browse files
feat(api): api update
1 parent 71bae29 commit 2a12ab8

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
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: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-0606bdf6929173c39cecc0ce0da252d509a38fbc98e7b8ddd64bdee5812625b9.yml
3-
openapi_spec_hash: c6c376e6d59b3c01e38559a2a74b075e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-d93857d410b13512999c334ecee7f97b286ba045aef743327ca90de7c78e0bef.yml
3+
openapi_spec_hash: 5163b368f085d519b7beab1246937d1a
44
config_hash: a478b24249ee4f53abfb5787ca4daf8b

src/supermemory/resources/documents.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,9 @@ def upload_file(
371371
Args:
372372
file: File to upload and process
373373
374-
container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
375-
project ID, or any other identifier you wish to use to group documents.
374+
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
375+
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
376+
strings will be automatically converted to an array.
376377
377378
file_type:
378379
Optional file type override to force specific processing behavior. Valid values:
@@ -762,8 +763,9 @@ async def upload_file(
762763
Args:
763764
file: File to upload and process
764765
765-
container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
766-
project ID, or any other identifier you wish to use to group documents.
766+
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
767+
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
768+
strings will be automatically converted to an array.
767769
768770
file_type:
769771
Optional file type override to force specific processing behavior. Valid values:

src/supermemory/resources/memories.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,9 @@ def upload_file(
371371
Args:
372372
file: File to upload and process
373373
374-
container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
375-
project ID, or any other identifier you wish to use to group documents.
374+
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
375+
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
376+
strings will be automatically converted to an array.
376377
377378
file_type:
378379
Optional file type override to force specific processing behavior. Valid values:
@@ -762,8 +763,9 @@ async def upload_file(
762763
Args:
763764
file: File to upload and process
764765
765-
container_tags: Optional JSON string of container tags array. This can be an ID for your user, a
766-
project ID, or any other identifier you wish to use to group documents.
766+
container_tags: Optional container tags. Can be either a JSON string of an array (e.g.,
767+
'["user_123", "project_123"]') or a single string (e.g., 'user_123'). Single
768+
strings will be automatically converted to an array.
767769
768770
file_type:
769771
Optional file type override to force specific processing behavior. Valid values:

src/supermemory/types/document_upload_file_params.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ class DocumentUploadFileParams(TypedDict, total=False):
1515
"""File to upload and process"""
1616

1717
container_tags: Annotated[str, PropertyInfo(alias="containerTags")]
18-
"""Optional JSON string of container tags array.
18+
"""Optional container tags.
1919
20-
This can be an ID for your user, a project ID, or any other identifier you wish
21-
to use to group documents.
20+
Can be either a JSON string of an array (e.g., '["user_123", "project_123"]') or
21+
a single string (e.g., 'user_123'). Single strings will be automatically
22+
converted to an array.
2223
"""
2324

2425
file_type: Annotated[str, PropertyInfo(alias="fileType")]

src/supermemory/types/memory_upload_file_params.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ class MemoryUploadFileParams(TypedDict, total=False):
1515
"""File to upload and process"""
1616

1717
container_tags: Annotated[str, PropertyInfo(alias="containerTags")]
18-
"""Optional JSON string of container tags array.
18+
"""Optional container tags.
1919
20-
This can be an ID for your user, a project ID, or any other identifier you wish
21-
to use to group documents.
20+
Can be either a JSON string of an array (e.g., '["user_123", "project_123"]') or
21+
a single string (e.g., 'user_123'). Single strings will be automatically
22+
converted to an array.
2223
"""
2324

2425
file_type: Annotated[str, PropertyInfo(alias="fileType")]

0 commit comments

Comments
 (0)