-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for GPT4V image uploads (#45)
* added support for image uploads on the chat ui * fixed error message for invalid image uploads * added upload image to s3 functionality * added uuid file naming for image uploads * removed unused import in ChatInput * removed unused imports * fixed vercel error * added export default to fix npm build import error * Initial work towards image functionality locally * refined local image previews * fixed padding in text area and fixed typing bug * slightly rounded edges of text input * image padding fix * added functionality for handling multiple images * message structure fix * fixed message structure for openai api calls * fixxed vercel error * Changes to add support for GPT4 Vision API (without image based retrieval) * Fixed image rendering on Chat scree, fixed previews based on website theme * Retrieval using image description * Refactored handleSend method for better readability * Minor cleanup, nothing major * Added logic to validate and regenerate preSigned urls, propogate the same to update the messages. * fixed img previews resizing of long vertical imgs * Improved dropzone for images in chat * Bugfixes on local storage updates and presigned link validation * Bug fixes and feedback: Handling regenerate gracefully, hiding edit button, removing image preview title * Minor prompt improvement * Removing duplicate import added while resolving conflicts * Removed the wrong import earlier, correcting it * Added accordion for image description * Build fix * Adding a deep equality check to handle infinite loop in memo caused by strict equality check on objects instead of values * Minor bugfixes with dependencies and conditions * Build fix * Dependency removal broke switching to an older conversation, reverting the change. Some more styling and error handling changes. * Adding conditional checks for file drag events based on GPT-4 Vision model * Improve: new conversation defaults to last convo's model, full error handling. Very nice * Improve: fix padding on chat input box with/without image input icon * Image filetype support, 100% of what openai allows, ignore caps * Image filetype support; one more push * Delete .vscode/settings.json * Update Image Description header for readability * Fix GPT4-V from using too many tokens. it’s a 40k TMP limit for some people, set limit to 15k * Rename models to even better human-readable names * Properly await image description to be fully generated --------- Co-authored-by: Rohan Marwaha <[email protected]> Co-authored-by: Kastan Day <[email protected]>
- Loading branch information
1 parent
d608891
commit 5ab5a06
Showing
25 changed files
with
1,447 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.