Hi!
I have a problem with detail
parameter. No matter whether I set it to low
or high
, cost of image in base64 format passed to gpt-4-vision-preview is 765 tokens (as for 1024*1024 in high detail) in contrast to 85 for low detail image according to documentation.
Does somebody know what I can do about it?
Here is example of request body:
payload = { "model": "gpt-4-vision-preview", "messages": [ { "role": "user", "content": [ {"type": "text", "text": "Describe the images one by one."}, *map(lambda x: { "type": "image_url", "image_url": { "url": f"data:image/jpeg;base64,{x}", "detail": "low", }, }, images[:70]) ] } ], "max_tokens": 1000 }