Add xAI for image captioning

This commit is contained in:
Cohee
2025-04-11 19:05:03 +03:00
parent 1c52099ed6
commit 17cdc78a91
5 changed files with 17 additions and 1 deletions

View File

@ -153,6 +153,10 @@ function throwIfInvalidModel(useReverseProxy) {
throw new Error('Cohere API key is not set.');
}
if (extension_settings.caption.multimodal_api === 'xai' && !secret_state[SECRET_KEYS.XAI]) {
throw new Error('xAI API key is not set.');
}
if (extension_settings.caption.multimodal_api === 'ollama' && !textgenerationwebui_settings.server_urls[textgen_types.OLLAMA]) {
throw new Error('Ollama server URL is not set.');
}