Skip to content
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

(bing) Support image recognition #168

Open
Richard-Weiss opened this issue Aug 26, 2023 · 1 comment
Open

(bing) Support image recognition #168

Richard-Weiss opened this issue Aug 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Richard-Weiss
Copy link

Richard-Weiss commented Aug 26, 2023

Description
I would like to suggest a possible enhancement for the web interface that would allow users to use the Bing image recognition feature. This feature is already implemented in the API server, but not yet available in the web interface.

Acceptance Criteria

  • There is a button close to the message input where a smaller menu open.
  • In that smaller menu the user has the option to write a URL or upload an image from their device.
  • (Optional) A preview of the image will be displayed.
  • The URL or base64 string of the image will be temporarily saved.
  • The user is notified in any way, that they have added an image successfully. For example with the image preview or a small message that persists until the user sends the message,
  • When the user sends a message the previous URL or base64 string will be used in the request.
  • The variables are emptied after sending the message.
  • The rest is handled by the API and current functionality.

Design Details
I have no existing experience in Vue, so there's not much I can write.
However the backend functionality exists from this PR for the API.
It is only necessary to set the variables in the sendMessage function in the Chat.vue file.
Of course it's also necessary to create the necessary HTML elements, CSS styling, a function to convert the uploaded image to base64, functions for the button clicks etc..
You can take a look at this commit as a reference to the functionality for the request. For example it is possible to manually set the variables and the API can use it, however this is just for testing.

@Richard-Weiss Richard-Weiss added the enhancement New feature or request label Aug 26, 2023
@zhouxinhao1208
Copy link

yes as it should be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants