Skip to content

Commit f94998f

Browse files
committed
for fixing test cases
1 parent 8437442 commit f94998f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

backend/app/api/routes/collections.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,14 @@ def create_collection(
120120
with_assistant=with_assistant,
121121
)
122122

123-
metadata = {}
124-
123+
metadata = None
125124
if not with_assistant:
126-
metadata["assistant_note"] = (
127-
"This job will create a vector store only (no Assistant). "
128-
"Assistant creation happens when both 'model' and 'instructions' are included."
129-
)
130-
131-
metadata = metadata if metadata else None
125+
metadata = {
126+
"note": (
127+
"This job will create a vector store only (no Assistant). "
128+
"Assistant creation happens when both 'model' and 'instructions' are included."
129+
)
130+
}
132131

133132
return APIResponse.success_response(
134133
CollectionJobImmediatePublic.model_validate(collection_job), metadata=metadata

0 commit comments

Comments
 (0)