Skip to content

How to upload an image from a folder | Provider BlackBox #2256

Answered by Parthsadaria
xxxpabloxxx asked this question in Q&A
Discussion options

You must be logged in to vote

Put Image Inside Messages like this

messages=[
                   {
                    "role": "user",
                    "content": f"{prompt}",
                    "data": {
                        "fileText": "", # file name
                        "imageBase64": base64_image
                    }
                } 
            ]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xxxpabloxxx
Comment options

Answer selected by xxxpabloxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants