From 879502c1e7a35e53079ccc89ce4ade1dac656fa0 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 12 Nov 2023 00:13:30 +0200 Subject: [PATCH] Only allow inlining if OAI is the selected API --- public/scripts/openai.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index c98860888..7242e2cd3 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -3292,6 +3292,10 @@ function updateScaleForm() { * @returns {boolean} True if the model supports image inlining */ export function isImageInliningSupported() { + if (main_api !== 'openai') { + return false; + } + const modelId = 'gpt-4-vision'; if (!oai_settings.image_inlining) {