Skip to content

Commit bdae946

Browse files
committed
fix duplication of message in ollama endpoint
1 parent b5bb0ea commit bdae946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatmock/routes_ollama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def _gen():
480480
done_obj = {
481481
"model": model_out,
482482
"created_at": created_at,
483-
"message": {"role": "assistant", "content": "".join(full_parts)},
483+
"message": {"role": "assistant", "content": ""},
484484
"done": True,
485485
}
486486
done_obj.update(_OLLAMA_FAKE_EVAL)

0 commit comments

Comments
 (0)