code-slicer commited on
Commit
7189996
·
verified ·
1 Parent(s): 485661f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -218,7 +218,7 @@ def _ollama_healthcheck():
218
 
219
 
220
  def _call_ollama_chat(messages, model=OLLAMA_MODEL, temperature=0.8, top_p=0.9, top_k=40, repeat_penalty=1.1, system_prompt=None):
221
- url = f"{OLLAMA_HOST.rstrip('/')}/api/chat"
222
  _msgs = []
223
  if system_prompt:
224
  _msgs.append({"role": "system", "content": system_prompt})
 
218
 
219
 
220
  def _call_ollama_chat(messages, model=OLLAMA_MODEL, temperature=0.8, top_p=0.9, top_k=40, repeat_penalty=1.1, system_prompt=None):
221
+ url = f"{OLLAMA_HOST}/api/chat"
222
  _msgs = []
223
  if system_prompt:
224
  _msgs.append({"role": "system", "content": system_prompt})