Skip to content

Commit 0bfae9d

Browse files
feat(api): api update
1 parent 73eac3b commit 0bfae9d

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
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-eb2aa0ee3a6380fe8dead168c3fec696acdf79d0fa5821b796f0335566c78f22.yml
3-
openapi_spec_hash: 4b09ba67c690fd139df5b939fc899d49
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-9700dc652e122ce090436c43ef4aaa24441b8e8a831999f00b5f744b951f5a19.yml
3+
openapi_spec_hash: 3910177e9b1d48d95d410a98039a659b
44
config_hash: f3eb5ca71172780678106f6d46f15dda

src/supermemory/types/search_memories_params.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3857,9 +3857,10 @@ class FiltersAnd(TypedDict, total=False):
38573857

38583858
class Include(TypedDict, total=False):
38593859
chunks: bool
3860-
"""
3861-
If true, fetch and return chunks from documents associated with the found
3862-
memories. Performs vector search on chunks within those documents.
3860+
"""DEPRECATED: Use searchMode='hybrid' instead.
3861+
3862+
If true, automatically switches to hybrid mode. This field is kept for backward
3863+
compatibility only.
38633864
"""
38643865

38653866
documents: bool

src/supermemory/types/search_memories_response.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ class SearchMemoriesResponse(BaseModel):
142142
Contains memory results when searchMode='memories', both memory and chunk
143143
results when searchMode='hybrid', or only chunk results when
144144
searchMode='documents'. Memory results have 'memory' field, chunk results have
145-
'chunk' field.
145+
'chunk' field. BACKWARD COMPATIBILITY: When using deprecated
146+
include.chunks=true, only memory results are returned with chunks embedded in
147+
them (old format).
146148
"""
147149

148150
timing: float

0 commit comments

Comments
 (0)