Spaces:
Configuration error
Configuration error
|
Download docs/modules/usage/llms/groq.md from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/modules/usage/llms/groq.md
- Command line
-
hf download hf://spaces/flyingdarkdev/README/docs/modules/usage/llms/groq.md
-
curl -L -o groq.md https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/modules/usage/llms/groq.md
1.27 kB
| # Groq | |
| OpenHands uses LiteLLM to make calls to chat models on Groq. You can find their documentation on using Groq as a provider [here](https://docs.litellm.ai/docs/providers/groq). | |
| ## Configuration | |
| When running OpenHands, you'll need to set the following in the OpenHands UI through the Settings: | |
| - `LLM Provider` to `Groq` | |
| - `LLM Model` to the model you will be using. [Visit here to see the list of | |
| models that Groq hosts](https://console.groq.com/docs/models). If the model is not in the list, toggle | |
| `Advanced` options, and enter it in `Custom Model` (e.g. groq/<model-name> like `groq/llama3-70b-8192`). | |
| - `API key` to your Groq API key. To find or create your Groq API Key, [see here](https://console.groq.com/keys). | |
| ## Using Groq as an OpenAI-Compatible Endpoint | |
| The Groq endpoint for chat completion is [mostly OpenAI-compatible](https://console.groq.com/docs/openai). Therefore, you can access Groq models as you | |
| would access any OpenAI-compatible endpoint. In the OpenHands UI through the Settings: | |
| 1. Enable `Advanced` options | |
| 2. Set the following: | |
| - `Custom Model` to the prefix `openai/` + the model you will be using (e.g. `openai/llama3-70b-8192`) | |
| - `Base URL` to `https://api.groq.com/openai/v1` | |
| - `API Key` to your Groq API key | |