Spaces:
Paused
Paused
Arshit Malik commited on
Commit ·
7e918f4
1
Parent(s): 0890aa5
fix: correct API endpoint path
Browse files- health_server.py +1 -1
health_server.py
CHANGED
|
@@ -34,7 +34,7 @@ async function chat(){
|
|
| 34 |
const p=prompt.value.trim();if(!p)return;addMsg(p,'user');messages.push({role:'user',content:p});
|
| 35 |
prompt.value='';sendBtn.disabled=prompt.disabled=true;statusDiv.textContent='Thinking...';
|
| 36 |
try{
|
| 37 |
-
const r=await fetch('/
|
| 38 |
headers:{'Content-Type':'application/json'},
|
| 39 |
body:JSON.stringify({model:'ollama/hf.co/bartowski/DeepSeek-R1-Distill-Qwen-14B-GGUF:IQ3_XS',
|
| 40 |
messages:messages,max_tokens:4096,temperature:0.7})});
|
|
|
|
| 34 |
const p=prompt.value.trim();if(!p)return;addMsg(p,'user');messages.push({role:'user',content:p});
|
| 35 |
prompt.value='';sendBtn.disabled=prompt.disabled=true;statusDiv.textContent='Thinking...';
|
| 36 |
try{
|
| 37 |
+
const r=await fetch('/v1/chat/completions',{method:'POST',
|
| 38 |
headers:{'Content-Type':'application/json'},
|
| 39 |
body:JSON.stringify({model:'ollama/hf.co/bartowski/DeepSeek-R1-Distill-Qwen-14B-GGUF:IQ3_XS',
|
| 40 |
messages:messages,max_tokens:4096,temperature:0.7})});
|