How to do few shot prompting with images in GPT-4 vision api structure? Can someone provide a code to do so?

Welcome to the community @deeksha.s.nayak

You can use multi-modal content in messages to pass image(s) and the desired text outcome in content blocks, akin to how it’s been used in this example from docs.

1 Like