@@ -1129,3 +1129,7 @@ msgstr "Модель заблокирована, т.к перестала обн msgid "Unable to recognize the image. (Supported formats are PNG, JPG, JPEG)" msgstr "Невозможно распознать изображение. (Поддерживаемые форматы: PNG, JPG, JPEG)" + +msgid "No matching version found" +msgstr "Соответствующая версия не найдена" + @@ -152,9 +152,8 @@ class Chatgpt(SimpleService): 'top_p': info.pop('top_p', 0.5), } self.llm.tiktoken_model_name = 'gpt-4' - if self.llm.model_name not in self.TOKENS_COST.keys(): - self.llm.model_name = 'gpt-4o' - model_name = 'gpt-4o' + if model_name not in self.TOKENS_COST.keys(): + raise Exception(_('No matching version found')) chat_history = self.get_chat_history() conversation = RunnableWithMessageHistory( runnable=self.llm,