This commit is contained in:
2026-02-01 19:09:26 +03:00
parent 0b01f30021
commit e238813980
3 changed files with 157 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ def call_ollama(prompt: str) -> str:
"stream": False,
"format": "json",
"options": OLLAMA_OPTIONS,
"keep_alive": 0, # выгрузить модель из памяти сразу после ответа
},
ensure_ascii=False,
).encode("utf-8")