Skip to content

Add Groq as optional AI provider (try GROQ_API_KEY first, else Gemini)#7

Merged
pridolfi merged 1 commit intomainfrom
groq-support
Mar 17, 2026
Merged

Add Groq as optional AI provider (try GROQ_API_KEY first, else Gemini)#7
pridolfi merged 1 commit intomainfrom
groq-support

Conversation

@pridolfi
Copy link
Copy Markdown
Owner

  • Add backends module with Gemini and Groq implementations; server uses a single generate(prompt, system_instruction, temperature) API
  • Prefer Groq when GROQ_API_KEY is set, otherwise use Gemini (GEMINI_API_KEY). No SSHQ_PROVIDER; selection is by which key is set
  • Require openai dependency for Groq (OpenAI-compatible API)
  • CLI: accept either GROQ_API_KEY or GEMINI_API_KEY; error if neither set
  • Document both providers and env vars (SSHQ_GEMINI_MODEL, SSHQ_GROQ_MODEL)
  • Tests: mock backend in server tests; single CLI test for missing both keys

- Add backends module with Gemini and Groq implementations; server
  uses a single generate(prompt, system_instruction, temperature) API
- Prefer Groq when GROQ_API_KEY is set, otherwise use Gemini
  (GEMINI_API_KEY). No SSHQ_PROVIDER; selection is by which key is set
- Require openai dependency for Groq (OpenAI-compatible API)
- CLI: accept either GROQ_API_KEY or GEMINI_API_KEY; error if neither set
- Document both providers and env vars (SSHQ_GEMINI_MODEL, SSHQ_GROQ_MODEL)
- Tests: mock backend in server tests; single CLI test for missing both keys

Signed-off-by: Pablo Ridolfi <pridolfi@redhat.com>
@pridolfi pridolfi merged commit 3f68a59 into main Mar 17, 2026
4 checks passed
@pridolfi pridolfi deleted the groq-support branch March 17, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant