shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

How to use a Groq API key?

Open robert-winkler opened this issue 8 months ago • 1 comments

Hi, I'm running an Open WebUI/ Ollama server, but for 'real-time' work, they are usually too slow.

In contrast, Groq https://groq.com/ provides high-speed access to open AI models and is compatible with OpenAI. For low-intensity use, the free tokens are sufficient.

Is there a way to use ShellGPT with the Groq API?

Best, Robert

robert-winkler avatar Apr 21 '25 17:04 robert-winkler

Hi, I'm using the following to use ShellGPT with the Groq API: in ~/.config/shell_gpt/.sgptrc, I changed the following:

OPENAI_API_KEY=<Groq API Key>
API_BASE_URL=https://api.groq.com/openai/v1
DEFAULT_MODEL=<Groq model I want to use>

Hope it helps.

sestren avatar May 05 '25 12:05 sestren