Skip to content

Commit 7210324

Browse files
committed
fix(mtmd): jinja typo error in Gemma4ChatHandler
1 parent 7562297 commit 7210324

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎llama_cpp/llama_multimodal.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,10 +2831,10 @@ class Gemma4ChatHandler(MTMDChatHandler):
28312831
" {%- endif -%}\n"
28322832
" {%- elif item.get('type') in ['video', 'video_url'] -%}\n"
28332833
" {%- if item.get('type') == 'video_url' -%}\n"
2834-
" {%- set video_val = part['video_url'] if part['video_url'] is string else part['video_url']['url'] -%}\n"
2834+
" {%- set video_val = item['video_url'] if item['video_url'] is string else item['video_url']['url'] -%}\n"
28352835
" {{- '<|video|>' + video_val -}}\n"
28362836
" {%- elif item.get('type') == 'video' -%}\n"
2837-
" {%- set video_val = part['video'] if part['video'] is string else part['video']['url'] -%}\n"
2837+
" {%- set video_val = item['video'] if item['video'] is string else item['video']['url'] -%}\n"
28382838
" {{- '<|video|>' + video_val -}}\n"
28392839
" {%- endif -%}\n"
28402840
" {%- endif -%}\n"

0 commit comments

Comments
 (0)