Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ api_key = st.secrets["groq_api_key"]
|
|
7 |
|
8 |
# Function to interact with Groq API
|
9 |
def get_groq_response(prompt):
|
10 |
-
url = "https://api.groq.com/
|
11 |
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
|
12 |
data = {"input": prompt}
|
13 |
|
|
|
7 |
|
8 |
# Function to interact with Groq API
|
9 |
def get_groq_response(prompt):
|
10 |
+
url = "https://api.groq.com/openai/v1/chat/completions" # Replace with the actual Groq API endpoint
|
11 |
headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}
|
12 |
data = {"input": prompt}
|
13 |
|