Alpha108 commited on
Commit
d5d0f39
·
verified ·
1 Parent(s): b921b45

Update llm_groq.py

Browse files
Files changed (1) hide show
  1. llm_groq.py +2 -2
llm_groq.py CHANGED
@@ -1,5 +1,5 @@
1
  import os
2
- from typing import List, Dict, Optional
3
 
4
  try:
5
  from groq import Groq
@@ -11,7 +11,7 @@ DEFAULT_MODEL = "llama-3.3-70b-versatile"
11
  def get_client() -> "Groq":
12
  api_key = os.getenv("GROQ_API_KEY")
13
  if not api_key:
14
- raise RuntimeError("Missing GROQ_API_KEY (set in Space → Settings → Variables & Secrets).")
15
  if Groq is None:
16
  raise RuntimeError("Package 'groq' not installed. Add 'groq' to requirements.txt.")
17
  return Groq(api_key=api_key)
 
1
  import os
2
+ from typing import List, Dict
3
 
4
  try:
5
  from groq import Groq
 
11
  def get_client() -> "Groq":
12
  api_key = os.getenv("GROQ_API_KEY")
13
  if not api_key:
14
+ raise RuntimeError("Missing GROQ_API_KEY. Set it in Space → Settings → Variables & Secrets.")
15
  if Groq is None:
16
  raise RuntimeError("Package 'groq' not installed. Add 'groq' to requirements.txt.")
17
  return Groq(api_key=api_key)