Fix 429 Client Error: Too Many Requests in CI test (#599)

This commit is contained in:
Albert Villanova del Moral 2025-02-11 10:42:27 +01:00 committed by GitHub
parent f6b0a12408
commit 91badcc054
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class ModelTests(unittest.TestCase):
data = json.loads(message.model_dump_json())
assert data["content"] == [{"type": "text", "text": "Hello!"}]
@pytest.mark.skipif(not os.getenv("RUN_ALL"), reason="RUN_ALL environment variable not set")
def test_get_hfapi_message_no_tool(self):
model = HfApiModel(max_tokens=10)
messages = [{"role": "user", "content": [{"type": "text", "text": "Hello!"}]}]