fix duplication of message in ollama endpoint

This commit is contained in:
Game_Time
2025-11-19 15:26:46 +05:00
parent b5bb0eaa8e
commit bdae9469ce

View File

@@ -480,7 +480,7 @@ def ollama_chat() -> Response:
done_obj = {
"model": model_out,
"created_at": created_at,
"message": {"role": "assistant", "content": "".join(full_parts)},
"message": {"role": "assistant", "content": ""},
"done": True,
}
done_obj.update(_OLLAMA_FAKE_EVAL)