File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,21 @@ except SDKError as e:
7272If you are self hosting the API, or developing locally, you can change the server URL when setting up the client.
7373
7474``` python
75- s = UnstructuredClient()
76-
7775# Using a local server
78- s.general.sdk_configuration.server_url = " http://localhost:8000"
76+ s = unstructured_client.UnstructuredClient(
77+ server_url = " http://localhost:8000" ,
78+ security = shared.Security(
79+ api_key_auth = api_key,
80+ ),
81+ )
7982
8083# Using your own server
81- s.general.sdk_configuration.server_url = " https://your-server"
84+ s = unstructured_client.UnstructuredClient(
85+ server_url = " https://your-server" ,
86+ security = shared.Security(
87+ api_key_auth = api_key,
88+ ),
89+ )
8290```
8391
8492<!-- Start Dev Containers -->
You can’t perform that action at this time.
0 commit comments