From 3deaa8179d78d3f719f9f527fcfb13799a407aa0 Mon Sep 17 00:00:00 2001 From: Fanli Lin Date: Wed, 4 Dec 2024 01:18:39 +0800 Subject: [PATCH] [docs] fix example code bug (#35054) fix code bug --- docs/source/en/tasks/image_text_to_text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/tasks/image_text_to_text.md b/docs/source/en/tasks/image_text_to_text.md index 041efb06c5..28bd98457e 100644 --- a/docs/source/en/tasks/image_text_to_text.md +++ b/docs/source/en/tasks/image_text_to_text.md @@ -229,7 +229,7 @@ Now let's call the `model_inference` function we created and stream the values. ```python generator = model_inference( user_prompt="And what is in this image?", - chat_history=messages, + chat_history=messages[:2], max_new_tokens=100, images=images )