Update groq_api.py
Browse files- groq_api.py +2 -1
groq_api.py
CHANGED
@@ -30,7 +30,8 @@ def GrokApi(
|
|
30 |
str: The content of the assistant's response or tool call results, or empty string on error.
|
31 |
"""
|
32 |
# Retrieve API key from environment
|
33 |
-
api_key = os.getenv("GROQ_API_KEY")
|
|
|
34 |
if not api_key:
|
35 |
print("Grok API error: GROQ_API_KEY environment variable not set")
|
36 |
return ""
|
|
|
30 |
str: The content of the assistant's response or tool call results, or empty string on error.
|
31 |
"""
|
32 |
# Retrieve API key from environment
|
33 |
+
#api_key = os.getenv("GROQ_API_KEY")
|
34 |
+
api_key=os.getenv("groq_api")
|
35 |
if not api_key:
|
36 |
print("Grok API error: GROQ_API_KEY environment variable not set")
|
37 |
return ""
|