Skip to content

Commit dde5077

Browse files
authored
Add options parameter for bulk_import interface (#2720)
Signed-off-by: yhmo <yihua.mo@zilliz.com>
1 parent f81be3d commit dde5077

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: pymilvus/bulk_writer/bulk_import.py

+4
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ def bulk_import(
121121
"secretKey": secret_key,
122122
}
123123

124+
options = kwargs.pop("options", {})
125+
if isinstance(options, dict):
126+
params["options"] = options
127+
124128
resp = _post_request(url=request_url, api_key=api_key, params=params, **kwargs)
125129
_handle_response(request_url, resp.json())
126130
return resp

0 commit comments

Comments
 (0)