cortex.cpp
cortex.cpp copied to clipboard
feat: Nitro chat completion with image supporting local image path
Problem
- The current implementation for
chat/completionwith only support for base64 asimage_url.urlmakes it hard for using curl to test out quickly. Using something likefile://<absolute path>makes it easier for testing out - While integrating with Jan app at https://github.com/janhq/jan/pull/1023, Jan uses
threads/<thread_id>/files/**.pngorjpg. If Nitro supports it, it's would be very convinient
Success Criteria
- Support in Nitro in
chat/completionto supportimage_url.urlas local file pathfile://<absolute_paththen Nitro can load image and use - https://platform.openai.com/docs/api-reference/chat/create - (optional): Can support remote image if possible but not really necessary.
Additional context Add any other context or screenshots about the feature request here.
It can also check: if includes https then download from remote