GenkitG
Genkit•6mo ago•
6 replies
then-purple

I've been trying to get a dotPrompt to

I've been trying to get a dotPrompt to work with Ollama using genkit for go. I can not seem to pass an image using a dotPrompt, unable to use {{media url=urlVariable}} in the prompt because none of the models I have tried support media (even though using Ollama UI I can pass images and PDFs just fine). And when I try to pass using {{images url=urlVariable}} the image does not seem to be passed when using dotPrompt.Execute(ctx, ai.WithModel(visionModel), ai.WithInput(map[string]any{"urlVariable": dataUrlBase64Encoded}))

Anyone have an example floating around out there using golang? I've seen a few examples but none using the dotPrompt.Execute function?
Was this page helpful?