This commit is contained in:
2026-06-24 19:50:43 +07:00
parent 906afc6422
commit de20764610
7 changed files with 224 additions and 250 deletions

View File

@@ -73,6 +73,16 @@ data2_uri = "data:$(mime_type);base64,$(image2_base64_string)"
openai_msg = Dict(
"model" => "gemma-4-E4B-it-UD-Q4_K_XL",
"messages" => [
Dict(
"role" => "user",
"content" => [
Dict("type" => "text", "text" => "Do you know this wine? Just give me brief intro."),
Dict(
"type" => "image_url",
"image_url" => Dict("url" => data1_uri)
)
]
),
Dict(
"role" => "user",
"content" => [
@@ -104,5 +114,51 @@ openai_msg = Dict(
)
llm_response = text2text_instruct_llm(openai_msg)
# ---------------------------------------------- 100 --------------------------------------------- #