Spaces:
Sleeping
Sleeping
Update groq_chat.py
Browse files- groq_chat.py +1 -1
groq_chat.py
CHANGED
|
@@ -13,7 +13,7 @@ MODEL = "moonshotai/kimi-k2-instruct"
|
|
| 13 |
def chat_with_groq(prompt, history=None, system_prompt="You are a helpful assistant.", temperature=0.7):
|
| 14 |
|
| 15 |
print("API Key loaded:", bool(GROQ_API_KEY_simple_chatbot))
|
| 16 |
-
if not
|
| 17 |
raise RuntimeError("Missing GROQ_API_KEY — make sure it's set as a Hugging Face secret.")
|
| 18 |
|
| 19 |
url = "https://api.groq.com/openai/v1/chat/completions"
|
|
|
|
| 13 |
def chat_with_groq(prompt, history=None, system_prompt="You are a helpful assistant.", temperature=0.7):
|
| 14 |
|
| 15 |
print("API Key loaded:", bool(GROQ_API_KEY_simple_chatbot))
|
| 16 |
+
if not GROQ_API_KEY_simple_chatbot:
|
| 17 |
raise RuntimeError("Missing GROQ_API_KEY — make sure it's set as a Hugging Face secret.")
|
| 18 |
|
| 19 |
url = "https://api.groq.com/openai/v1/chat/completions"
|