Hi! This PR fixes an issue in the Qwen-VL generate_until method that was caused by a typo (contexts[i] was being referenced as context[i]; singular). I also added an if statement that converts contexts to a list so we can use item assignment with the indexing operator. Finally, made a minor refactor to make the construction of the query more readable.
Hi! This PR fixes an issue in the Qwen-VL
generate_until
method that was caused by a typo (contexts[i]
was being referenced ascontext[i]
; singular). I also added anif
statement that convertscontexts
to a list so we can use item assignment with the indexing operator. Finally, made a minor refactor to make the construction of thequery
more readable.