Skip to content

Commit 0818605

Browse files
authored
skills: add Client-Platform header for official skill traffic attribution (#17766)
1 parent c47cc08 commit 0818605

File tree

2 files changed

+2
-0
lines changed
  • skills
    • paddleocr-doc-parsing/scripts
    • paddleocr-text-recognition/scripts

2 files changed

+2
-0
lines changed

skills/paddleocr-doc-parsing/scripts/lib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def _make_api_request(api_url: str, token: str, params: dict) -> dict:
164164
headers = {
165165
"Authorization": f"token {token}",
166166
"Content-Type": "application/json",
167+
"Client-Platform": "official-skill",
167168
}
168169

169170
timeout = float(os.getenv("PADDLEOCR_DOC_PARSING_TIMEOUT", str(DEFAULT_TIMEOUT)))

skills/paddleocr-text-recognition/scripts/lib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def _make_api_request(api_url: str, token: str, params: dict) -> dict:
153153
headers = {
154154
"Authorization": f"token {token}",
155155
"Content-Type": "application/json",
156+
"Client-Platform": "official-skill",
156157
}
157158

158159
timeout = float(os.getenv("PADDLEOCR_TIMEOUT", str(DEFAULT_TIMEOUT)))

0 commit comments

Comments
 (0)