#GPT-4V (Vision)

1 messages · Page 1 of 1 (latest)

upper prairie
#

I'm attempting to integrate Typebot with GPT-4V (Vision) through the Webhook Block.
It works seamlessly when the URL points to any image from Google Images, randomly selected. However, it encounters issues when the image is sent/uploaded through Typebot.

The error message provided is too ambiguous, I'm speculating that the problem may be related to the cross-origin policy.

"error": {
  "message": "Invalid image.",
  "type": "invalid_request_error",
  "param": null,
  "code": null
}

I'm seeking any clues or advice that could help troubleshoot this issue.

cosmic sedge
#

Maybe it's some access policy for the bucket where the image is, is this using the AWS minio?

cosmic sedge
#

Try open the url that is put in the variable in a incognito window, if open so there is no problem with access policy for the bucket, Or you can try send the file to openai storage also.

#

You are an expert, I feel like I'm trying to teach ¨a priest how to say mass¨, sorry for maybe saying something that you might already know.

upper prairie
#

The access policy already "public".
Do you know where else should I change it?

#

The minio / s3 url is already public. I can access it from the incognito window.
The problem is the typebot URL for the image.

cosmic sedge
#

Sorry delay I was busy... I will try replicate this here..

#

should look like this

upper prairie
#

I send an image to Typebot. In Typebot I get an URL like:
https://typebot.myurl.io/api/typebots/<bunchoffstuff>
If I access this url I get the error: {"message":"Not authenticated"}

But if I access my minio, I can see that the original image url is something like:
https://s3.myurl.io/typebot/public/workspaces/<bunchofstuff>
And that's public accessible.

cosmic sedge
#

Yes I was wrong the domain is from s3 or minio not typebot builder

upper prairie
#

Differently from mine, yours is receiving the minio URL, not the bot, and it works because of that.
Why is mine different?
🤔

cosmic sedge
#

Are you using preview mode or live ?

upper prairie
#

Thought Whatsapp.

cosmic sedge
#

try use this

upper prairie
#

It works if I don't use Whatsapp.

cosmic sedge
#

So is something on code of integration of whatsapp

#

some variable

cosmic sedge
# upper prairie The access policy already "public". Do you know where else should I change it?

Access Policy

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
""
]
},
"Action": [
"s3:ListBucketMultipartUploads",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::typebot"
]
},
{
"Effect": "Allow",
"Principal": {
"AWS": [
"
"
]
},
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::typebot"
],
"Condition": {
"StringEquals": {
"s3:prefix": [
"public"
]
}
}
},
{
"Effect": "Allow",
"Principal": {
"AWS": [
""
]
},
"Action": [
"s3:PutObject",
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:GetObject",
"s3:ListMultipartUploadParts"
],
"Resource": [
"arn:aws:s3:::typebot/public
"
]
}
]
}