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

UI: support get and delete existing files in conversation UI #869

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Ruoyu-y
Copy link
Contributor

@Ruoyu-y Ruoyu-y commented Sep 25, 2024

Description

Add the file display for files that has already been uploaded in conversation UI through /v1/dataprep/get_file.
Support file delete in conversation UI.

Issues

n/a.

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

List the newly introduced 3rd party dependency if exists.

Tests

Describe the tests that you ran to verify your changes.

* add file display and delete
* support chinese output

Signed-off-by: Ruoyu Ying <[email protected]>
* modify datasource scss
* modify configs

Signed-off-by: Ruoyu Ying <[email protected]>
VITE_DATA_PREP_SERVICE_URL=http://backend_address:6007/v1/dataprep
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use nginx to forward messages from the frontend to the backend, just need to provide endpoint name here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the env should be set as sth like this?

VITE_DATA_PREP_SERVICE_URL=/v1/dataprep
VITE_DATAPREP_GET_FILE_ENDPOINT=/v1/dataprep/get_file
VITE_DATAPREP_DELETE_FILE_ENDPOINT=/v1/dataprep/delete_file

@chensuyue
Copy link
Collaborator

@Ruoyu-y do we still need this PR?

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

Successfully merging this pull request may close these issues.

4 participants