Groq.py 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. from __future__ import annotations
  2. from .OpenaiAPI import OpenaiAPI
  3. class Groq(OpenaiAPI):
  4. label = "Groq"
  5. url = "https://console.groq.com/playground"
  6. login_url = "https://console.groq.com/keys"
  7. api_base = "https://api.groq.com/openai/v1"
  8. working = True
  9. default_model = "mixtral-8x7b-32768"
  10. fallback_models = [
  11. "distil-whisper-large-v3-en",
  12. "gemma2-9b-it",
  13. "gemma-7b-it",
  14. "llama3-groq-70b-8192-tool-use-preview",
  15. "llama3-groq-8b-8192-tool-use-preview",
  16. "llama-3.1-70b-versatile",
  17. "llama-3.1-8b-instant",
  18. "llama-3.2-1b-preview",
  19. "llama-3.2-3b-preview",
  20. "llama-3.2-11b-vision-preview",
  21. "llama-3.2-90b-vision-preview",
  22. "llama-guard-3-8b",
  23. "llava-v1.5-7b-4096-preview",
  24. "llama3-70b-8192",
  25. "llama3-8b-8192",
  26. "mixtral-8x7b-32768",
  27. "whisper-large-v3",
  28. "whisper-large-v3-turbo",
  29. ]
  30. model_aliases = {"mixtral-8x7b": "mixtral-8x7b-32768", "llama2-70b": "llama2-70b-4096"}