Geinji commited on
Commit
1b3ff95
·
verified ·
1 Parent(s): 22caee5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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/inference" # Replace with the actual Groq API endpoint
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