Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def call_blackbox_agent(messages, model="gpt-4o"):
|
|
38 |
{"role": "user", "content": "Refactor this code: ..."}
|
39 |
]
|
40 |
"""
|
41 |
-
url = "
|
42 |
headers = {
|
43 |
"Content-Type": "application/json",
|
44 |
"Authorization": f"Bearer {BLACKBOX_API_KEY}"
|
|
|
38 |
{"role": "user", "content": "Refactor this code: ..."}
|
39 |
]
|
40 |
"""
|
41 |
+
url = "https://api.code.blackbox.ai/v1/chat/completions"
|
42 |
headers = {
|
43 |
"Content-Type": "application/json",
|
44 |
"Authorization": f"Bearer {BLACKBOX_API_KEY}"
|