mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Only allow inlining if OAI is the selected API
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user