Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds GroqCloud as a first-class LLM provider option in Dexter (OpenAI-compatible Chat Completions), including provider routing, model selection UI entries, and env/docs updates.
Changes
Provider registry + routing
groqto the canonical provider registry (src/providers.ts) with:modelPrefix:groq:apiKeyEnvVar:GROQ_API_KEYfastModel:groq:llama-3.1-8b-instantsrc/model/llm.tsusing LangChain'sChatOpenAIagainst Groq's OpenAI-compatible base URL (https://api.groq.com/openai/v1).groq:prefix for routing; the prefix is stripped before sending to Groq (groq:llama-...→llama-...).CLI model selection
src/components/ModelSelector.tsx(prefixed withgroq:) so users can select Groq models from the built-in list.groq:-prefixed model IDs.Environment + docs
GROQ_API_KEYtoenv.example.README.mdprerequisites and.envexample snippet to mention GroqCloud and theGROQ_API_KEY.AGENTS.mdprovider list / env var list to include GroqCloud and addedbuild/lintcommands for local workflows.Tooling scripts
bun run build(bundles todist/with external packages) andbun run lint(alias totypecheck) inpackage.json.How to test
bun run buildbun run lintbun run typecheckbun testNotes
GroqCloud is wired via the OpenAI-compatible Chat Completions API (base URL
https://api.groq.com/openai/v1), so it integrates cleanly viaChatOpenAIwhile keeping the provider routing model-prefix approach consistent with existing providers.