diff --git a/src/utils/ai.js b/src/utils/ai.js index 66acd6ad..13d404c2 100644 --- a/src/utils/ai.js +++ b/src/utils/ai.js @@ -149,6 +149,8 @@ var MULTIMODAL_PROVIDERS = ['litellm', 'openrouter', 'azure']; function applyImageAttachments(messages, images) { if (!Array.isArray(images) || !images.length) return messages; + // One-line observability: confirms image parts reach the provider request. + console.log('[clinical-ai] attaching ' + images.length + ' image part(s) to the provider request'); if (MULTIMODAL_PROVIDERS.indexOf(activeProvider) === -1) { var unsupported = new Error('Image attachments require an OpenAI-compatible provider (LiteLLM, OpenRouter, or Azure). The active provider cannot accept image input, so no request was sent.'); unsupported.statusCode = 400;