Skip to content

Commit 1b10a8f

Browse files
author
Dylan Huang
committed
Update User-Agent format in get_user_agent function to use 'eval-protocol' prefix
1 parent ff67aff commit 1b10a8f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

eval_protocol/common_utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88
def get_user_agent() -> str:
99
"""
1010
Returns the user-agent string for eval-protocol CLI requests.
11-
11+
1212
Format: eval-protocol-cli/{version}
13-
13+
1414
Returns:
1515
User-agent string identifying the eval-protocol CLI and version.
1616
"""
1717
try:
1818
from . import __version__
19-
return f"eval-protocol-cli/{__version__}"
19+
20+
return f"eval-protocol/{__version__}"
2021
except Exception:
21-
return "eval-protocol-cli/unknown"
22+
return "eval-protocol/unknown"
2223

2324

2425
def load_jsonl(file_path: str) -> List[Dict[str, Any]]:

0 commit comments

Comments
 (0)