File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments