Only allow inlining if OAI is the selected API

This commit is contained in:
Cohee 2023-11-12 00:13:30 +02:00
parent 2c4f53e7b5
commit 879502c1e7

View File

@ -3292,6 +3292,10 @@ function updateScaleForm() {
* @returns {boolean} True if the model supports image inlining * @returns {boolean} True if the model supports image inlining
*/ */
export function isImageInliningSupported() { export function isImageInliningSupported() {
if (main_api !== 'openai') {
return false;
}
const modelId = 'gpt-4-vision'; const modelId = 'gpt-4-vision';
if (!oai_settings.image_inlining) { if (!oai_settings.image_inlining) {