Skip to content

Commit

Permalink
Add Groq.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmurdza authored Feb 29, 2024
1 parent 4d339b4 commit c459ebf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ See also: [List of cloud hosts for inference and fine-tuning](https://github.com
- [Cohere](#cohere)
- [Mistral](#mistral)
- [Google](#google)
- [Groq](#groq)

## OpenAI

Expand Down Expand Up @@ -184,3 +185,29 @@ curl "https://generativelanguage.googleapis.com/v1beta/models/embedding-001:gene
]
}'
```

## Groq

🔑 Get API key [here](https://console.groq.com/keys).

📃 API [docs](https://console.groq.com/docs/).

### Chat
```bash
curl "https://api.groq.com/openai/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $GROQ_API_KEY" \
-d '{
"model": "mixtral-8x7b-32768",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
]
}'
```

0 comments on commit c459ebf

Please sign in to comment.