chore: log image parts attached to provider requests
All checks were successful
Forgejo Android APK / Root app tests (push) Successful in 22s
Forgejo Android APK / Build signed APK (push) Successful in 2m17s

This commit is contained in:
Daniel 2026-09-08 16:45:07 +02:00
parent 17a0ebe68b
commit 6c9ac58ce3

View file

@ -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;