From 6c9ac58ce33d241aa5d8dfda6ea2171ba0acde3b Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 8 Sep 2026 16:45:07 +0200 Subject: [PATCH] chore: log image parts attached to provider requests --- src/utils/ai.js | 2 ++ 1 file changed, 2 insertions(+) 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;