Skip to content

Commit 68bc413

Browse files
committed
pass user agent on online call
1 parent b8af812 commit 68bc413

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def snapshot_download_w_retry(*args, **kwargs):
6464
except LocalEntryNotFoundError:
6565
pass
6666
with hf_offline_context(False):
67-
return snapshot_download(*args, **kwargs)
67+
return snapshot_download(
68+
*args, user_agent={"is_ci": "true", "axolotl": "ci"}, **kwargs
69+
)
6870

6971

7072
@pytest.fixture(scope="session", autouse=True)

0 commit comments

Comments
 (0)