From 7210324f0feb4be06ea27efb7ce24da7443a781b Mon Sep 17 00:00:00 2001 From: craftingmod Date: Sat, 22 Aug 2026 11:38:33 +0900 Subject: [PATCH] fix(mtmd): jinja typo error in `Gemma4ChatHandler` --- llama_cpp/llama_multimodal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llama_cpp/llama_multimodal.py b/llama_cpp/llama_multimodal.py index f681be333..542eaa69b 100644 --- a/llama_cpp/llama_multimodal.py +++ b/llama_cpp/llama_multimodal.py @@ -2831,10 +2831,10 @@ class Gemma4ChatHandler(MTMDChatHandler): " {%- endif -%}\n" " {%- elif item.get('type') in ['video', 'video_url'] -%}\n" " {%- if item.get('type') == 'video_url' -%}\n" - " {%- set video_val = part['video_url'] if part['video_url'] is string else part['video_url']['url'] -%}\n" + " {%- set video_val = item['video_url'] if item['video_url'] is string else item['video_url']['url'] -%}\n" " {{- '<|video|>' + video_val -}}\n" " {%- elif item.get('type') == 'video' -%}\n" - " {%- set video_val = part['video'] if part['video'] is string else part['video']['url'] -%}\n" + " {%- set video_val = item['video'] if item['video'] is string else item['video']['url'] -%}\n" " {{- '<|video|>' + video_val -}}\n" " {%- endif -%}\n" " {%- endif -%}\n"