Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,15 @@ DEEPSEEK_API_KEY = os.getenv("DEEPSEEK_API_KEY")
|
|
7 |
|
8 |
# API endpoint for DeepSeek
|
9 |
#DEEPSEEK_API_URL = "https://api.deepseek.com/v1/completions"
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
HEADERS = {"Authorization": f"Bearer {DEEPSEEK_API_KEY}", "Content-Type": "application/json"}
|
13 |
|
|
|
7 |
|
8 |
# API endpoint for DeepSeek
|
9 |
#DEEPSEEK_API_URL = "https://api.deepseek.com/v1/completions"
|
10 |
+
# API endpoint for DeepSeek
|
11 |
+
#DEEPSEEK_API_URL = "https://api.deepseek.com/chat/completions"
|
12 |
+
|
13 |
+
DEEPSEEK_API_URL = "https://api.deepseek.com/v1/chat/completions" # Updated endpoint
|
14 |
+
HEADERS = {
|
15 |
+
"Authorization": f"Bearer {DEEPSEEK_API_KEY}",
|
16 |
+
"Content-Type": "application/json",
|
17 |
+
"Accept": "application/json" # Added for clarity
|
18 |
+
}
|
19 |
|
20 |
HEADERS = {"Authorization": f"Bearer {DEEPSEEK_API_KEY}", "Content-Type": "application/json"}
|
21 |
|