File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,14 @@ def __init__(
150150 self ._connected = False
151151 self ._skip_init_checks = skip_init_checks
152152
153- self ._headers = {"content-type" : "application/json" }
153+ client_type = "sync" if isinstance (self , ConnectionSync ) else "async"
154+ embedded_suffix = "-embedded" if self .embedded_db is not None else ""
155+ client_header = f"weaviate-client-python/{ client_version } -{ client_type } { embedded_suffix } "
156+
157+ self ._headers = {
158+ "content-type" : "application/json" ,
159+ "X-Weaviate-Client" : client_header ,
160+ }
154161 self .__add_weaviate_embedding_service_header (connection_params .http .host )
155162 if additional_headers is not None :
156163 _validate_input (_ValidateArgument ([dict ], "additional_headers" , additional_headers ))
You can’t perform that action at this time.
0 commit comments