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
2.99k stars 1.38k forks source link

count_tokens_vision() is not implemented for model gpt-4o. #616

Open delfer opened 2 months ago

delfer commented 2 months ago
2024-07-06 06:16:51,942 - root - ERROR - Exception while handling an update: ⚠️ _Произошла ошибка._ ⚠️
count_tokens_vision() is not implemented for model gpt-4o.
BiSKonti commented 1 month ago

In openai_helper.py just add "gpt-4o-mini" in GPT_4_VISION_MODELS (line 29).