We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 837dade commit c18c15fCopy full SHA for c18c15f
tests/integrations/huggingface_hub/test_huggingface_hub.py
@@ -72,8 +72,8 @@ def mock_hf_text_generation_api(httpx_mock):
72
_add_mock_response(
73
httpx_mock,
74
rsps,
75
- method="GET",
76
- url=re.compile(
+ "GET",
+ re.compile(
77
MODEL_ENDPOINT.format(model_name=model_name)
78
+ r"(\?expand=inferenceProviderMapping)?"
79
),
@@ -94,8 +94,8 @@ def mock_hf_text_generation_api(httpx_mock):
94
95
96
97
- method="POST",
98
- url=INFERENCE_ENDPOINT.format(model_name=model_name),
+ "POST",
+ INFERENCE_ENDPOINT.format(model_name=model_name),
99
json={
100
"generated_text": "[mocked] Hello! How can i help you?",
101
"details": {
0 commit comments