diff --git a/src/crewai/cli/constants.py b/src/crewai/cli/constants.py index 0c698ec2c..f22db702f 100644 --- a/src/crewai/cli/constants.py +++ b/src/crewai/cli/constants.py @@ -87,12 +87,8 @@ ENV_VARS = { ], "huggingface": [ { - "prompt": "Enter your HUGGINGFACE API key (press Enter to skip)", - "key_name": "HUGGINGFACE_API_KEY", - }, - { - "prompt": "Enter your Huggingface API base URL (press Enter to skip)", - "key_name": "base_url", + "prompt": "Enter your Huggingface API key (HF_TOKEN) (press Enter to skip)", + "key_name": "HF_TOKEN", }, ], } diff --git a/tests/cli/test_constants.py b/tests/cli/test_constants.py index 9fa9b4c40..d8f4d77ad 100644 --- a/tests/cli/test_constants.py +++ b/tests/cli/test_constants.py @@ -11,7 +11,7 @@ def test_huggingface_env_vars(): """Test that Huggingface environment variables are properly configured.""" assert "huggingface" in ENV_VARS assert any( - detail.get("key_name") == "HUGGINGFACE_API_KEY" + detail.get("key_name") == "HF_TOKEN" for detail in ENV_VARS["huggingface"] )