Closed yannxaver closed 1 week ago
Not currently. This is very openai specific.
Do you have a use case that is not possible with the default automatic
detail setting?
Sometimes it's preferable to set detail
to low
to reduce input tokens (costs). If it is set to automatic
OpenAI will choose the detail level based on the image size. So if I can't set the detail
level manually, I would have to resize the image instead to activate detail=low
. That would take additional resources and be slower.
I am investigating to include the ai sdk in my current workflow but this is a blocker because we dont want to manually downsize all images needed in our prompts (usually 20+). Also in gpt-4o-mini the token consumption is much more than with base gpt-4o because they want to make the same pricing in both, so being able to set detail
to low
significantly reduces it
When you use detail: "low"
, do you set it for all images, or do you change this setting only for certain images?
I personally use it for all images
Feature Description
OpenAI exposes a
detail
parameter for images. (https://platform.openai.com/docs/guides/vision/low-or-high-fidelity-image-understanding)Is it possible to set this parameter using the
ai
library?Use Case
No response
Additional context
No response