iisadia commited on
Commit
6094d0e
·
verified ·
1 Parent(s): e93d9aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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"