From 10501db5f0469a69342008cf4b9f632dd26f40d2 Mon Sep 17 00:00:00 2001 From: Prince Canuma Date: Tue, 7 May 2024 20:06:25 +0200 Subject: [PATCH] remove chat history until multi-image support --- mlx_vlm/chat_ui.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mlx_vlm/chat_ui.py b/mlx_vlm/chat_ui.py index 3c89fa6..8ec5f1f 100644 --- a/mlx_vlm/chat_ui.py +++ b/mlx_vlm/chat_ui.py @@ -89,10 +89,6 @@ def generate( def chat(message, history, temperature, max_tokens): chat = [] - for item in history: - chat.append(get_message_json(config["model_type"], item[0])) - if item[1] is not None: - chat.append({"role": "assistant", "content": item[1]}) if message["files"]: chat.append(get_message_json(config["model_type"], message["text"]))