diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 93e045ddb..5d65685d9 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -4763,12 +4763,13 @@ export function isImageInliningSupported() { 'gpt-4-turbo', 'gpt-4o', 'gpt-4o-mini', + 'chatgpt-4o-latest', 'yi-vision', ]; switch (oai_settings.chat_completion_source) { case chat_completion_sources.OPENAI: - return visionSupportedModels.some(model => oai_settings.openai_model.includes(model) && !oai_settings.openai_model.includes('chatgpt-4o-latest') && !oai_settings.openai_model.includes('gpt-4-turbo-preview')); + return visionSupportedModels.some(model => oai_settings.openai_model.includes(model) && !oai_settings.openai_model.includes('gpt-4-turbo-preview')); case chat_completion_sources.MAKERSUITE: return visionSupportedModels.some(model => oai_settings.google_model.includes(model)); case chat_completion_sources.CLAUDE: