mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-06 12:47:57 +01:00
Only allow inlining if OAI is the selected API
This commit is contained in:
parent
2c4f53e7b5
commit
879502c1e7
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user