Skip to content

Commit 18af64c

Browse files
Add 'Client-Platform' header for server processing (#2657)
Co-authored-by: David S. Batista <dsbatista@gmail.com>
1 parent 9bc4fd5 commit 18af64c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integrations/paddleocr/src/haystack_integrations/components/converters/paddleocr/paddleocr_vl_document_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def _parse(self, data: bytes, file_type: FileType) -> tuple[str, dict[str, Any]]
372372

373373
# Prepare headers with authentication
374374
access_token_value = self.access_token.resolve_value() if self.access_token else None
375-
headers = {"Content-Type": "application/json"}
375+
headers = {"Content-Type": "application/json", "Client-Platform": "haystack"}
376376
if access_token_value:
377377
headers["Authorization"] = f"token {access_token_value}"
378378

0 commit comments

Comments
 (0)