mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-05 08:10:30 +00:00
fix: use proper X-Api-Key header format when docling api key provided (#20652)
This commit is contained in:
parent
1555252c4a
commit
e26f6acc3b
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue