Skip to content

Commit 93ff9ec

Browse files
erwardenaarclaude
andcommitted
Add User-Agent header to arXiv API requests
arXiv recommends identifying API clients via User-Agent. This follows their usage guidelines and may reduce the likelihood of rate limiting. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent eefd274 commit 93ff9ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/openllm_selector/database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ def fetch_recent_papers(model_name: str, max_results: int = 3) -> list[dict]:
521521
"sortOrder": "descending",
522522
"max_results": max_results,
523523
},
524+
headers={"User-Agent": "openllm-selector/0.0.1 (https://github.com/evawardenaar/openllm-selector)"},
524525
timeout=(5, 15),
525526
)
526527
response.raise_for_status()

0 commit comments

Comments
 (0)