fix: use HuggingFaceEmbeddingFunction for embeddings, update keys and add tests (#4005)

This commit is contained in:
Greyson LaLonde
2025-12-04 18:05:50 -05:00
committed by GitHub
parent 34e09162ba
commit 7fff2b654c
6 changed files with 61 additions and 16 deletions

View File

@@ -515,8 +515,7 @@ crew = Crew(
"provider": "huggingface",
"config": {
"api_key": "your-hf-token", # Optional for public models
"model": "sentence-transformers/all-MiniLM-L6-v2",
"api_url": "https://api-inference.huggingface.co" # or your custom endpoint
"model": "sentence-transformers/all-MiniLM-L6-v2"
}
}
)