mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 07:42:40 +00:00
Update Huggingface API key name to HF_TOKEN and remove base URL prompt
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -87,12 +87,8 @@ ENV_VARS = {
|
|||||||
],
|
],
|
||||||
"huggingface": [
|
"huggingface": [
|
||||||
{
|
{
|
||||||
"prompt": "Enter your HUGGINGFACE API key (press Enter to skip)",
|
"prompt": "Enter your Huggingface API key (HF_TOKEN) (press Enter to skip)",
|
||||||
"key_name": "HUGGINGFACE_API_KEY",
|
"key_name": "HF_TOKEN",
|
||||||
},
|
|
||||||
{
|
|
||||||
"prompt": "Enter your Huggingface API base URL (press Enter to skip)",
|
|
||||||
"key_name": "base_url",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ def test_huggingface_env_vars():
|
|||||||
"""Test that Huggingface environment variables are properly configured."""
|
"""Test that Huggingface environment variables are properly configured."""
|
||||||
assert "huggingface" in ENV_VARS
|
assert "huggingface" in ENV_VARS
|
||||||
assert any(
|
assert any(
|
||||||
detail.get("key_name") == "HUGGINGFACE_API_KEY"
|
detail.get("key_name") == "HF_TOKEN"
|
||||||
for detail in ENV_VARS["huggingface"]
|
for detail in ENV_VARS["huggingface"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user