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

The API for uploading files using the knowledge base name has been ad… #466

Closed

Conversation

zhangyulei000
Copy link

…ded.

Resolve the issue #417 .

The API for uploading files using the knowledge base name has been added.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

@@ -118,6 +118,15 @@ def get_by_id(cls, pid):
except Exception as e:
return False, None

@classmethod
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could add this chunk of code to the knowledge base service.



@manager.route('/conversation/upload', methods=['POST'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

hange this to /document/upload

@manager.route('/conversation/upload', methods=['POST'])
@login_required
@validate_request("name")
Copy link
Collaborator

Choose a reason for hiding this comment

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

name->kb_name

@zhangyulei000
Copy link
Author

Based on the review feedback, I have made the necessary fixes.

@KevinHuSh KevinHuSh closed this May 9, 2024
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.

2 participants