n3d1117 / chatgpt-telegram-bot

🤖 A Telegram bot that integrates with OpenAI's official ChatGPT APIs to provide answers, written in Python
GNU General Public License v2.0
3k stars 1.38k forks source link

gpt-4-vision-preview is deprecated #604

Open notintricate opened 3 months ago

notintricate commented 3 months ago

can't make vision working

artwist-polyakov commented 3 months ago

@notintricate Hi there! 👋

The vision model name has been updated. You just need to change it to gpt-4o. This should resolve your issue.

elenium3 commented 3 months ago
Exception while handling an update:
 count_tokens_vision() is not implemented for model gpt-4o.
artwist-polyakov commented 3 months ago
Exception while handling an update:
 count_tokens_vision() is not implemented for model gpt-4o.

Hello! You can simply add your new model to the tuple to avoid this exception. https://github.com/n3d1117/chatgpt-telegram-bot/blob/02b2b97e9dddfbe78e7f9dc6565ebf4d83b5d684/bot/openai_helper.py#L698

here is initialization https://github.com/n3d1117/chatgpt-telegram-bot/blob/02b2b97e9dddfbe78e7f9dc6565ebf4d83b5d684/bot/openai_helper.py#L29

artwist-polyakov commented 3 months ago

Also you cat wait for this PR merging https://github.com/n3d1117/chatgpt-telegram-bot/pull/583