roboflow / maestro

streamline the fine-tuning process for multimodal models: PaliGemma, Florence-2, and Qwen2-VL
https://maestro.roboflow.com
Apache License 2.0
1.39k stars 102 forks source link

Error: The model `gpt-4-vision-preview` has been deprecated #30

Closed kvnptl closed 2 months ago

kvnptl commented 2 months ago

Search before asking

Bug

ValueError: The model gpt-4-vision-preview has been deprecated, learn more here: https://platform.openai.com/docs/deprecations

Environment

Minimal Reproducible Example

Run the colab notebook named "multimodal_maestro_gpt_4_vision.ipynb"

Additional

No response

Are you willing to submit a PR?

Wheelspawn commented 2 months ago

gpt-4-vision-preview is definitely deprecated. https://platform.openai.com/docs/deprecations/2024-06-06-gpt-4-32k-and-vision-preview-models

I was able to fix this by simply replacing gpt-4-vision-preview with gpt-4o in maestro/lmms/gpt4.py like the docs suggest. Fortunately, the notebook worked without any further modification.

I've submitted a PR with the change. In the meantime, you can just go to wherever you have the package installed and modify gpt4.py to use gpt-4o.