-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Vision API #500
base: main
Are you sure you want to change the base?
Conversation
Now |
Has there been any updates with this? |
Uhhh well haven't had time to finish this up but maybe will try this weekend... |
@lectrician1 That would be amazing, this feature would literally be the revolutionary feature for this repo. Lately the repo hasn't been very active, so this might just change the future of how active and innovative it becomes. Please keep us updated here, will try to help :) |
@Ahmet-Dedeler it's almost ready. I just need help from @ztjhz @akira0245 or @ayaka14732 to write the migration code in |
I'll take a look at this. |
Sorry for tagging but did any of you chance to look at this @ztjhz @akira0245 @ayaka14732 ? |
This comment was marked as resolved.
This comment was marked as resolved.
Is content wrong with no vision model? i asked ChatGPT and it write migration, it is works for me: export const migrateV8 = (persistedState: LocalStorageInterfaceV7oV8) => {
persistedState.chats.forEach((chat) => {
chat.messages.forEach((message) => {
// Check if the old content structure exists
if (typeof message.content === 'string') {
// Convert the old content string to the new content array structure
message.content = [{
type: 'text', // assuming all old content is of type 'text'
text: message.content
}] as ContentInterface[];
}
});
});
}; I have error in EditView.tsx:246 state.chats is undefined, i just make this: |
Appreciate the contribution @lectrician1 , thanks to you, I was able to add image URL support much quicker animalnots#5 |
Sorry for tagging but did any of you chance to look at this @ztjhz @akira0245 @ayaka14732 ? been a while :) add this feature plz |
https://github.com/animalnots/BetterChatGPT-PLUS/releases |
I also have some fixes in my fork (but i mixed with changes for my site):
Not fixed:Save current chat as Markdown return objects instead of text:
|
Adds the ability to use the vision API in the client. Resolves #488 and #473
Message interface:
Editing interface:
modelTypes
and check for it inEditView.tsx
Notable changes
This PR changes the the data structures of
ChatInterface
,MessageInterface
, and createsContentInterface
,TextContentInterface
andImageContentInterface
so that it follows the updated API JSON structure for prompts that contain images.Before:
After:
The
url
parameter stores the URL of the image locally (theblob:
URL) and at generation-time the client converts all the blob URLs into base64 for the API to take in.