[docs] fix example code bug (#35054)

fix code bug
This commit is contained in:
Fanli Lin
2024-12-04 01:18:39 +08:00
committed by GitHub
parent 125de41643
commit 3deaa8179d

View File

@@ -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
)