-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
adds images in history, create file for pasted images in chat #241664
Conversation
If the changes appear safe, you can manually trigger the pipeline by commenting |
// A funtion that filters out specifically the `value` property of the attachment. | ||
private getFilteredEntry(query: string, inputState: IChatInputState): IChatHistoryEntry { | ||
const attachmentsWithoutImageValues = inputState.chatContextAttachments?.map(attachment => { | ||
if (attachment.isImage && attachment.references?.length && attachment.value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there some case where an image attachment doesn't have references, and then the image data will still be saved in history?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there shouldn't be case where images don't have references (besides if it comes from web and is an image, then it is okay because the value
will be a URL)
fix #240026