RouterArena icon indicating copy to clipboard operation
RouterArena copied to clipboard

feat: Add Groq provider support

Open Shanzita opened this issue 8 months ago • 0 comments

Summary

  • Add Groq as a new LLM provider
  • Support 5 models: llama-3.3-70b-versatile, llama-3.1-8b-instant, llama-3.1-70b-versatile, mixtral-8x7b-32768, gemma2-9b-it
  • Groq offers very fast inference, useful for latency-sensitive routing

Changes

  • llm_inference/model_inference.py: Add _call_groq() method and model mappings
  • model_cost/model_cost.json: Add Groq model pricing
  • universal_model_names.py: Add Groq model names
  • .env.example: Add GROQ_API_KEY

Test plan

  • [x] CI passes (pre-commit, mypy)
  • [ ] Manual test with Groq API key (optional)

Notes

Groq uses OpenAI-compatible API, implementation follows existing patterns (similar to DeepSeek/Perplexity).

Shanzita avatar Mar 16 '26 03:03 Shanzita