Skip to content

Commit e26f6ac

Browse files
authored
fix: use proper X-Api-Key header format when docling api key provided (open-webui#20652)
1 parent 1555252 commit e26f6ac

File tree

1 file changed

+1
-1
lines changed
  • backend/open_webui/retrieval/loaders

1 file changed

+1
-1
lines changed

backend/open_webui/retrieval/loaders/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def load(self) -> list[Document]:
143143
with open(self.file_path, "rb") as f:
144144
headers = {}
145145
if self.api_key:
146-
headers["X-Api-Key"] = f"Bearer {self.api_key}"
146+
headers["X-Api-Key"] = f"{self.api_key}"
147147

148148
r = requests.post(
149149
f"{self.url}/v1/convert/file",

0 commit comments

Comments
 (0)