Open gianlucasama opened 2 months ago
I believe the issue is resolved in #166, will update the package also today, can you check?
Yes, I can check it. I was also looking into adding the "detail" parameter so that people can manually switch between the "low" and "high" image processing schemes provided by OpenAI. From what they say the "auto" value is default: it decides automatically based on input image size. I still think we need manual control though. Being sure about input image pricing can be important.
Following code:
Throws:
Solved by changing OpenAIChatCompletionChoiceMessageContentItemModel method:
Into:
Following https://platform.openai.com/docs/guides/vision
If you need a pull request for this let me know :) (Just noticed there is already a pull request for this)