File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
docarray/array/storage/weaviate Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 99 Union ,
1010 Tuple ,
1111 List ,
12+ Any ,
1213)
1314
1415import numpy as np
@@ -31,6 +32,7 @@ class WeaviateConfig:
3132 host : Optional [str ] = field (default = 'localhost' )
3233 port : Optional [int ] = field (default = 8080 )
3334 protocol : Optional [str ] = field (default = 'http' )
35+ additional_headers : Optional [Dict [str , Any ]] = field (default_factory = dict )
3436 name : Optional [str ] = None
3537 list_like : bool = True
3638 serialize_config : Dict = field (default_factory = dict )
@@ -124,6 +126,7 @@ def _init_storage(
124126 self ._client = weaviate .Client (
125127 f'{ config .protocol } ://{ config .host } :{ config .port } ' ,
126128 timeout_config = config .timeout_config ,
129+ additional_headers = config .additional_headers ,
127130 )
128131 self ._config = config
129132
You can’t perform that action at this time.
0 commit comments