Naz786 commited on
Commit
f89be9c
·
verified ·
1 Parent(s): 722c417

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -15
app.py CHANGED
@@ -30,21 +30,6 @@ def call_groq_api(prompt, model="llama3-70b-8192"):
30
  else:
31
  return f"[Groq API Error] {response.text}"
32
 
33
- # def call_blackbox_agent(prompt):
34
- # url = "https://api.code.blackbox.ai/v1/chat/completions"
35
- # headers = {
36
- # "Content-Type": "application/json",
37
- # "Authorization": f"Bearer {BLACKBOX_API_KEY}"
38
- # }
39
- # data = {
40
- # "message": prompt
41
- # }
42
- # response = requests.post(url, headers=headers, json=data)
43
- # if response.status_code == 200:
44
- # return response.json().get("response", response.json())
45
- # else:
46
- # return f"[Blackbox API Error] {response.text}"
47
-
48
  def call_blackbox_agent(messages, model="gpt-4o"):
49
  """
50
  messages: list of dicts, e.g.
 
30
  else:
31
  return f"[Groq API Error] {response.text}"
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  def call_blackbox_agent(messages, model="gpt-4o"):
34
  """
35
  messages: list of dicts, e.g.