NassimeBejaia commited on
Commit
98e8e0c
·
verified ·
1 Parent(s): f84e000

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
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
- DEEPSEEK_API_URL = "https://api.deepseek.com/chat/completions"
 
 
 
 
 
 
 
 
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