Skip to content

Commit

Permalink
Merge pull request #22 from Blaizzy/pc/add-chat-ui
Browse files Browse the repository at this point in the history
Remove chat history until multi-image support
  • Loading branch information
Blaizzy authored May 7, 2024
2 parents 990c5a0 + 6d97511 commit 8ebb01a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mlx_vlm/chat_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]))
Expand Down

0 comments on commit 8ebb01a

Please sign in to comment.