Skip to content

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Sep 29, 2025

Description

huggingface_hub has a release candidate out and our test suite doesn't work with it.

Two changes necessary:

  • 1.0 uses httpx, so our responses mocks don't work, we also need pytest_httpx.
  • With httpx we get additional http.client spans in the transaction, while before we were assuming the transaction only contains exactly one gen_ai.* span and nothing else.

Issues

Closes #4802

Reminders

Copy link

codecov bot commented Sep 29, 2025

❌ 66 Tests Failed:

Tests completed Failed Passed Skipped
22107 66 22041 2101
View the top 3 failed test(s) by shortest run time
::tests.integrations.huggingface_hub.test_huggingface_hub
Stack Traces | 0s run time
ImportError while importing test module '.../integrations/huggingface_hub/test_huggingface_hub.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.tox/py3.8-huggingface_hub-v0.28.1/lib/python3.8.../site-packages/_pytest/python.py:493: in importtestmodule
    mod = import_path(
.tox/py3.8-huggingface_hub-v0.28.1/lib/python3.8.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.8.18.../x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
.tox/py3.8-huggingface_hub-v0.28.1/lib/python3.8.../_pytest/assertion/rewrite.py:185: in exec_module
    exec(co, module.__dict__)
.../integrations/huggingface_hub/test_huggingface_hub.py:5: in <module>
    import httpx
E   ModuleNotFoundError: No module named 'httpx'
::tests.integrations.huggingface_hub.test_huggingface_hub
Stack Traces | 0s run time
ImportError while importing test module '.../integrations/huggingface_hub/test_huggingface_hub.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.tox/py3.10-huggingface_hub-v0.24.7/lib/python3.10.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
.tox/py3.10-huggingface_hub-v0.24.7/lib/python3.10.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.10.18.../x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
.tox/py3.10-huggingface_hub-v0.24.7/lib/python3.10.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../integrations/huggingface_hub/test_huggingface_hub.py:5: in <module>
    import httpx
E   ModuleNotFoundError: No module named 'httpx'
::tests.integrations.huggingface_hub.test_huggingface_hub
Stack Traces | 0s run time
ImportError while importing test module '.../integrations/huggingface_hub/test_huggingface_hub.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.tox/py3.11-huggingface_hub-v0.24.7/lib/python3.11.../site-packages/_pytest/python.py:498: in importtestmodule
    mod = import_path(
.tox/py3.11-huggingface_hub-v0.24.7/lib/python3.11.../site-packages/_pytest/pathlib.py:587: in import_path
    importlib.import_module(module_name)
.../hostedtoolcache/Python/3.11.13.../x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
.tox/py3.11-huggingface_hub-v0.24.7/lib/python3.11.../_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
.../integrations/huggingface_hub/test_huggingface_hub.py:5: in <module>
    import httpx
E   ModuleNotFoundError: No module named 'httpx'
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[False-True]
Stack Traces | 0.097s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[False-False]
Stack Traces | 0.101s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[False-False]
Stack Traces | 0.105s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[True-False]
Stack Traces | 0.105s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[True-True]
Stack Traces | 0.121s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[False-False]
Stack Traces | 0.122s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[False-True]
Stack Traces | 0.123s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[True-False]
Stack Traces | 0.123s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[True-False]
Stack Traces | 0.163s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[False-True]
Stack Traces | 0.165s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea548-0a6c25da43bb9cf33cefbfe2;dc9e5d70-53ff-4140-9ad8-526fc4379f17)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_api_error
Stack Traces | 0.166s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:681: in test_chat_completion_api_error
    (span,) = transaction["spans"]
    ^^^^^^^
E   ValueError: too many values to unpack (expected 1)
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[True-True]
Stack Traces | 0.166s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea549-529d3a01538e7efe496973b1;6032102e-3b29-4525-b4af-a5e2774219cf)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[False-True]
Stack Traces | 0.166s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54c-612e6a3f368322df21d52100;497a9cc1-75c8-4f28-bc06-fc4cb3ece83c)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[True-False]
Stack Traces | 0.166s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54c-090e2796045e2ba47f182aa5;89ca3462-8aca-41f0-a54f-a4a399ae6507)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[False-True]
Stack Traces | 0.166s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[False-False]
Stack Traces | 0.167s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea549-6c620ce667c4bceb605bc047;80be8a35-864e-4652-b858-2f75dd34399d)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[False-False]
Stack Traces | 0.167s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54e-068bbd7a005dbcef49529717;046e913c-f9e5-4be5-bc92-45f45920c3c4)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[False-True]
Stack Traces | 0.168s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54a-1472dca8717fcb69238fc408;e2339f3f-f3d2-493d-95cf-2353c62cfae2)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[True-True]
Stack Traces | 0.168s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54d-723abcd11eab3a3b6f139c85;4c9b8015-3857-478a-ad2e-9fddcd1918d6)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[False-False]
Stack Traces | 0.169s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54b-66d0ec5f6ba9f4375cd6483c;8e292a5b-bcae-43b0-bd21-9372ab9827ed)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[False-True]
Stack Traces | 0.17s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54e-55d5218c17d1b41611bc22e6;8982617e-c256-49c4-a351-603485d3605b)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[True-False]
Stack Traces | 0.171s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54a-28981b3341b22a2f05b28e67;f194f4b2-cc6f-4e66-90fd-cee16ad4bdea)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[True-False]
Stack Traces | 0.172s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54e-226f0c2d6310b8131349767d;7a6ffb86-cb2a-4df8-8dab-ebe532aeb3fd)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[False-False]
Stack Traces | 0.172s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54d-48cde9580884fe5512e4c058;189a601f-594a-444f-b32a-8e2ce90ca3c1)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[False-False]
Stack Traces | 0.179s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea488-4de2ac8a35dd44e15e35798a;0cce07ce-3217-4b17-8ffb-84ed4a109ed0)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[True-False]
Stack Traces | 0.179s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea487-5baff50906ff95366aa58bea;39262a7d-fc4a-4d59-b14d-5670a927d363)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[True-True]
Stack Traces | 0.179s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea487-1e3751b147be409479f9705d;45f6e360-b826-4ee5-a09e-8fff748cfa7d)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[False-True]
Stack Traces | 0.179s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea48b-4cd266476035804d3dd0baa6;7bc26afb-4bbd-4f17-b39f-f0f24e19cfb5)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[False-True]
Stack Traces | 0.179s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea48a-6faed197632a08ed5d6b034a;d52a41e6-c178-45c8-842a-500630596364)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[False-True]
Stack Traces | 0.18s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea486-5cb741e71dfe534f1400dc69;ea9eb036-2f21-4baf-8706-9d28063e3855)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[True-True]
Stack Traces | 0.18s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea48b-6fe3264a1bb9fa1153394638;89ce25c9-16f5-4300-a71b-d8757f1244c8)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[True-False]
Stack Traces | 0.182s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea548-7464bb46181201391696fe1b;90aee6e0-0fcc-4a79-86da-19e1cbd24b87)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[False-False]
Stack Traces | 0.182s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea48c-13b8a95803631798565d731d;3317a898-008d-4709-8398-3a1d0a78fc8e)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[True-False]
Stack Traces | 0.182s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea48b-1ce86f655c7b5f2d40beb7d9;ddd37e95-395c-4a54-8fb3-7292c2e0737a)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_api_error
Stack Traces | 0.183s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:681: in test_chat_completion_api_error
    (span,) = transaction["spans"]
E   ValueError: too many values to unpack (expected 1)
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[True-False]
Stack Traces | 0.184s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea578-31be0f1c138333ec3aeececa;67d5ac1f-8c21-433e-b056-42b06e5e10ed)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[False-True]
Stack Traces | 0.184s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57a-6064ef58530d17760727b863;67e57913-a45e-4e01-966b-0a8caeb47b42)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[False-True]
Stack Traces | 0.184s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57e-0678b97d1db78b57352a260e;446dac81-fa70-49ff-92e4-08a8644f41ae)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[True-True]
Stack Traces | 0.184s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea54b-75fea7053b9225bb442ba82c;fa930b87-26d2-4de0-b4d6-746c89e46196)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[False-False]
Stack Traces | 0.185s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57f-1c152d6d03868d776e07b384;0636f161-d897-4fae-8be5-36ffa4b7f583)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[False-False]
Stack Traces | 0.185s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57d-2f04959d03ef15090b99fae3;f5108b79-c4a0-4efb-8fdd-5906e476e382)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[False-False]
Stack Traces | 0.186s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea579-420fdf633ad5b4031cd96995;6ce125e4-9b47-42f7-b38a-209f2e1a3f52)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[False-True]
Stack Traces | 0.186s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea579-548e8ce22800ee6a550b4999;84880934-bb3b-4ef4-ba3c-cb46718d96b8)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[False-True]
Stack Traces | 0.186s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57c-42896db22b240e39182c91a7;063be09c-795b-46e8-b29f-c8e1f8599c0d)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[True-False]
Stack Traces | 0.186s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea489-75fe368671a2753b68db5a54;183a809c-c5f3-4990-a2d2-84fcb76d8a1c)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[False-False]
Stack Traces | 0.187s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea486-011979950696bfd10298fa43;2a49856d-c02b-4392-ba1b-c8cb3d5b4f43)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[True-True]
Stack Traces | 0.187s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea579-76809ea61a0afc5871c4db23;0a1d01eb-2a08-4fc5-a3cd-acc447afbbe4)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[True-True]
Stack Traces | 0.193s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57d-496b76704be2f5256695b321;9f03b0ee-285e-48f1-82db-b5c1bc8bf39c)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[True-True]
Stack Traces | 0.193s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_api_error
Stack Traces | 0.194s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:681: in test_chat_completion_api_error
    (span,) = transaction["spans"]
    ^^^^^^^
E   ValueError: too many values to unpack (expected 1)
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[True-True]
Stack Traces | 0.195s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea489-232f4812353da71b7e9fb069;3746b1e0-28ba-419c-924a-da730cb4b4db)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[True-True]
Stack Traces | 0.197s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57c-1c706236192fb9c126fdaaf9;2c74bda9-87a7-4f26-aab5-8e81702da153)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[False-True]
Stack Traces | 0.199s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea488-5e2304a05e1c524331c93f3d;664d2c8d-5488-4884-9b3b-d9cb73934bc7)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[False-False]
Stack Traces | 0.202s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea48a-314a618f6eb00d477f65f444;18f9b9c4-acd3-475f-89cd-a87b71f62b81)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[True-True]
Stack Traces | 0.206s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea484-1e5203ea6eb45c0e5291c292;ac9d8864-6343-47cd-82dc-8853f73fedff)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[True-False]
Stack Traces | 0.211s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57a-6ba523492032b00e00e61baf;101afde1-d9cb-4882-b57a-22b30beb90fe)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_with_tools[True-False]
Stack Traces | 0.211s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:755: in test_chat_completion_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57c-5d29d3bd351ddad83872f850;71d6b35f-d19f-4b60-8d73-3d5c77ce4a60)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[True-True]
Stack Traces | 0.213s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea578-42c7504a42dc90fd3e35cd1e;e98568da-3009-43dd-af88-1013930c51a3)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_text_generation_streaming[True-True]
Stack Traces | 0.217s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:498: in test_text_generation_streaming
    for _ in client.text_generation(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:2412: in text_generation
    raise_text_generation_error(e)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_common.py:423: in raise_text_generation_error
    raise http_error
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:2382: in text_generation
    bytes_output = self._inner_post(request_parameters, stream=stream or False)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:284: in _inner_post
    hf_raise_for_status(response)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:633: in hf_raise_for_status
    raise _format(HfHubHTTPError, str(e), response) from e
E   huggingface_hub.errors.HfHubHTTPError: Client error '401 Unauthorized' for url 'https://router.huggingface..../hf-inference/models/test-model'
E   For more information check: https://developer.mozilla..../HTTP/Status/401
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[True-True]
Stack Traces | 0.232s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.13-huggingface_hub-v1.0.0rc2/lib/python3.13.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea547-443770ac589f1a362ff1ad32;1e1c93a3-b5d5-43c6-90ee-5fe0236c7e6f)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming[False-False]
Stack Traces | 0.318s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:617: in test_chat_completion_streaming
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57b-33d5d730484883356a3ed9c7;ae669d1f-93e3-4b4f-81a3-0d2336af281f)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion_streaming_with_tools[True-False]
Stack Traces | 0.326s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:833: in test_chat_completion_streaming_with_tools
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.12-huggingface_hub-v1.0.0rc2/lib/python3.12.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea57e-0b43121c130df1180f060de7;0fbab6c2-b224-4bac-80f2-cf02de01b645)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.
tests.integrations.huggingface_hub.test_huggingface_hub::test_chat_completion[True-False]
Stack Traces | 0.98s run time
.../integrations/huggingface_hub/test_huggingface_hub.py:556: in test_chat_completion
    client.chat_completion(
sentry_sdk/integrations/huggingface_hub.py:135: in new_huggingface_task
    raise e from None
sentry_sdk/integrations/huggingface_hub.py:131: in new_huggingface_task
    res = f(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/inference/_client.py:923: in chat_completion
    request_parameters = provider_helper.prepare_request(
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/_common.py:91: in prepare_request
    provider_mapping_info = self._prepare_mapping_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:45: in _prepare_mapping_info
    _check_supported_task(model_id, self.task)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../inference/_providers/hf_inference.py:169: in _check_supported_task
    model_info = HfApi().model_info(model)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_validators.py:89: in _inner_fn
    return fn(*args, **kwargs)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../site-packages/huggingface_hub/hf_api.py:2522: in model_info
    hf_raise_for_status(r)
.tox/py3.9-huggingface_hub-v1.0.0rc2/lib/python3.9.../huggingface_hub/utils/_http.py:610: in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
E   huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-68dea485-2db5706c3f6860e61412b34e;34792eeb-a23c-4b32-b51b-9cc0fbfb3035)
E   
E   Repository Not Found for url: https://huggingface..../api/models/test-model.
E   Please make sure you specified the correct `repo_id` and `repo_type`.
E   If you are trying to access a private or gated repo, make sure you are authenticated. For more details, see https://huggingface..../docs/huggingface_hub/authentication
E   Invalid username or password.

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Comment on lines +77 to +78
MODEL_ENDPOINT.format(model_name=model_name)
+ r"(\?expand=inferenceProviderMapping)?"
Copy link
Contributor Author

@sentrivana sentrivana Oct 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

responses by default ignores the query string when looking for url matches, but pytest-httpx doesn't

@sentrivana sentrivana marked this pull request as ready for review October 3, 2025 07:52
@sentrivana sentrivana requested a review from a team as a code owner October 3, 2025 07:52
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@sentrivana sentrivana merged commit 39cb2c5 into master Oct 6, 2025
113 checks passed
@sentrivana sentrivana deleted the ivana/support-huggingface_hub_v1 branch October 6, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support huggingface_hub v1.0
2 participants