Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,8 @@ groq_api_key = "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"
|
|
| 10 |
|
| 11 |
# Function to call Groq Llama API
|
| 12 |
def call_groq_api(prompt):
|
| 13 |
-
url = "https://api.groq.com/v1/chat/completions"
|
|
|
|
| 14 |
headers = {
|
| 15 |
"Authorization": f"Bearer {groq_api_key}",
|
| 16 |
"Content-Type": "application/json"
|
|
|
|
| 10 |
|
| 11 |
# Function to call Groq Llama API
|
| 12 |
def call_groq_api(prompt):
|
| 13 |
+
url = "https://api.groq.com/openai/v1/chat/completions"
|
| 14 |
+
|
| 15 |
headers = {
|
| 16 |
"Authorization": f"Bearer {groq_api_key}",
|
| 17 |
"Content-Type": "application/json"
|