From c2810dfee26b30cc8db356ab23600c35d88366cc Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Thu, 4 Dec 2025 00:05:10 +0000 Subject: [PATCH] fix(api): update VQA API endpoint for tuple return format Update interrogate API endpoint to handle the new (text, image) tuple return format from VQA interrogate function. --- modules/api/endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api/endpoints.py b/modules/api/endpoints.py index c00648ade..5aeee4dd4 100644 --- a/modules/api/endpoints.py +++ b/modules/api/endpoints.py @@ -100,7 +100,7 @@ def post_vqa(req: models.ReqVQA): image = helpers.decode_base64_to_image(req.image) image = image.convert('RGB') from modules.interrogate import vqa - answer = vqa.interrogate(req.question, req.system, '', image, req.model) + answer, _ = vqa.interrogate(req.question, req.system, '', image, req.model) return models.ResVQA(answer=answer) def post_unload_checkpoint():