fix: use proper X-Api-Key header format when docling api key provided (#20652)

This commit is contained in:
Kailey Wong 2026-01-14 22:44:35 -08:00 committed by GitHub
parent 1555252c4a
commit e26f6acc3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,7 @@ class DoclingLoader:
with open(self.file_path, "rb") as f:
headers = {}
if self.api_key:
headers["X-Api-Key"] = f"Bearer {self.api_key}"
headers["X-Api-Key"] = f"{self.api_key}"
r = requests.post(
f"{self.url}/v1/convert/file",