fix: use proper X-Api-Key header format when docling api key provided (#20652)
This commit is contained in:
@@ -143,7 +143,7 @@ class DoclingLoader:
|
|||||||
with open(self.file_path, "rb") as f:
|
with open(self.file_path, "rb") as f:
|
||||||
headers = {}
|
headers = {}
|
||||||
if self.api_key:
|
if self.api_key:
|
||||||
headers["X-Api-Key"] = f"Bearer {self.api_key}"
|
headers["X-Api-Key"] = f"{self.api_key}"
|
||||||
|
|
||||||
r = requests.post(
|
r = requests.post(
|
||||||
f"{self.url}/v1/convert/file",
|
f"{self.url}/v1/convert/file",
|
||||||
|
|||||||
Reference in New Issue
Block a user