mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 09:08:31 +00:00
Add Groq - OpenAI Compatible API - details (#934)
This commit is contained in:
@@ -127,7 +127,7 @@ llm = HuggingFaceHub(
|
|||||||
```
|
```
|
||||||
|
|
||||||
## OpenAI Compatible API Endpoints
|
## OpenAI Compatible API Endpoints
|
||||||
Switch between APIs and models seamlessly using environment variables, supporting platforms like FastChat, LM Studio, and Mistral AI.
|
Switch between APIs and models seamlessly using environment variables, supporting platforms like FastChat, LM Studio, Groq, and Mistral AI.
|
||||||
|
|
||||||
### Configuration Examples
|
### Configuration Examples
|
||||||
#### FastChat
|
#### FastChat
|
||||||
@@ -144,6 +144,13 @@ OPENAI_API_BASE="http://localhost:1234/v1"
|
|||||||
OPENAI_API_KEY="lm-studio"
|
OPENAI_API_KEY="lm-studio"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Groq API
|
||||||
|
```sh
|
||||||
|
OPENAI_API_KEY=your-groq-api-key
|
||||||
|
OPENAI_MODEL_NAME='llama3-8b-8192'
|
||||||
|
OPENAI_API_BASE=https://api.groq.com/openai/v1
|
||||||
|
```
|
||||||
|
|
||||||
#### Mistral API
|
#### Mistral API
|
||||||
```sh
|
```sh
|
||||||
OPENAI_API_KEY=your-mistral-api-key
|
OPENAI_API_KEY=your-mistral-api-key
|
||||||
|
|||||||
Reference in New Issue
Block a user