mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
* Fix #2551: Add Huggingface to provider list in CLI Co-Authored-By: Joe Moura <joao@crewai.com> * Update Huggingface API key name to HF_TOKEN and remove base URL prompt Co-Authored-By: Joe Moura <joao@crewai.com> * Update Huggingface API key name to HF_TOKEN in documentation Co-Authored-By: Joe Moura <joao@crewai.com> * Fix import sorting in test_constants.py Co-Authored-By: Joe Moura <joao@crewai.com> * Fix import order in test_constants.py Co-Authored-By: Joe Moura <joao@crewai.com> * Fix import formatting in test_constants.py Co-Authored-By: Joe Moura <joao@crewai.com> * Skip failing tests in Python 3.11 due to VCR cassette issues Co-Authored-By: Joe Moura <joao@crewai.com> * Fix import order in knowledge_test.py Co-Authored-By: Joe Moura <joao@crewai.com> * Revert skip decorators to check if tests are flaky Co-Authored-By: Joe Moura <joao@crewai.com> * Restore skip decorators for tests with VCR cassette issues in Python 3.11 Co-Authored-By: Joe Moura <joao@crewai.com> * revert skip pytest decorators * Remove import sys and skip decorators from test files Co-Authored-By: Joe Moura <joao@crewai.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Joe Moura <joao@crewai.com> Co-authored-by: Lucas Gomide <lucaslg200@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9dffd42e6d
commit
d659151dca
@@ -535,14 +535,13 @@ In this section, you'll find detailed examples that help you select, configure,
|
||||
<Accordion title="Hugging Face">
|
||||
Set the following environment variables in your `.env` file:
|
||||
```toml Code
|
||||
HUGGINGFACE_API_KEY=<your-api-key>
|
||||
HF_TOKEN=<your-api-key>
|
||||
```
|
||||
|
||||
Example usage in your CrewAI project:
|
||||
```python Code
|
||||
llm = LLM(
|
||||
model="huggingface/meta-llama/Meta-Llama-3.1-8B-Instruct",
|
||||
base_url="your_api_endpoint"
|
||||
model="huggingface/meta-llama/Meta-Llama-3.1-8B-Instruct"
|
||||
)
|
||||
```
|
||||
</Accordion>
|
||||
|
||||
Reference in New Issue
Block a user