File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def partition(
5151 # Note(austin): Add a custom check to handle the default server URL
5252 # The SDK globally defaults to the platform URL.
5353 # If that hasn't changed, we need to switch to the partition url here.
54- if base_url == "https://platform.unstructuredapp.io" :
54+ if "https://platform.unstructuredapp.io" in base_url :
5555 base_url = "https://api.unstructuredapp.io"
5656
5757 if not isinstance (request , BaseModel ):
@@ -184,7 +184,7 @@ async def partition_async(
184184 # Note(austin): Add a custom check to handle the default server URL
185185 # The SDK globally defaults to the platform URL.
186186 # If that hasn't changed, we need to switch to the partition url here.
187- if base_url == "https://platform.unstructuredapp.io" :
187+ if "https://platform.unstructuredapp.io" in base_url :
188188 base_url = "https://api.unstructuredapp.io"
189189
190190 if not isinstance (request , BaseModel ):
You can’t perform that action at this time.
0 commit comments