Skip to content

Commit 433a610

Browse files
committed
[chore][collection-query] Fixes #5857 - Address pr comments
1 parent 72cb36f commit 433a610

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chromadb/api/models/CollectionCommon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ def _validate_and_prepare_get_request(
278278
"You must set a data loader on the collection if loading from URIs."
279279
)
280280

281-
# Prepare
282-
request_include = include
281+
# Copy the list before any in-place modifications.
282+
request_include = list(include) if include else []
283283
# We need to include uris in the result from the API to load datas
284284
if "data" in include and "uris" not in include:
285285
request_include.append("uris")

0 commit comments

Comments
 (0)