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

⚙️ fix: File Config Handling #4664

Merged
merged 6 commits into from
Nov 7, 2024
Merged

⚙️ fix: File Config Handling #4664

merged 6 commits into from
Nov 7, 2024

Conversation

danny-avila
Copy link
Owner

Summary

  • Refactored useFileHandling hook to use memoization and callbacks for consistent file configuration usage

  • Moved endpoint field to first position in FormData for better request structure

  • Created dynamic file filter from custom fileConfig in multer configuration

  • Implemented proper type checking for endpoint-specific file configurations

  • Enhanced error logging for vector operations using the logger utility

  • Updated librechat-data-provider to version 0.7.54 for improved type support

  • Restructured file validation logic to be more maintainable and efficient

  • My code adheres to this project's style guidelines

  • I have performed a self-review of my own code

  • I have commented in any complex areas of my code

  • I have made pertinent documentation changes

  • My changes do not introduce new warnings

  • I have written tests demonstrating that my changes are effective or that my feature works

  • Local unit tests pass with my changes

  • Any changes dependent on mine have been merged and published in downstream modules.

@danny-avila danny-avila merged commit 49ee88b into main Nov 7, 2024
4 checks passed
@danny-avila danny-avila deleted the fix/file-config branch November 7, 2024 16:11
owengo pushed a commit to openwengo/LibreChat that referenced this pull request Nov 26, 2024
* chore: typing

* refactor: create file filter from custom fileConfig, if provided

* refactor: use logger utility to avoid overly verbose axios error logs when using RAG_API

* fix(useFileHandling): use memoization/callbacks to make sure the appropriate fileConfig is used; refactor: move endpoint to first field applied to formdata

* chore: update librechat-data-provider version to 0.7.54

* chore: revert type change
BertKiv pushed a commit to BertKiv/LibreChat that referenced this pull request Dec 10, 2024
* chore: typing

* refactor: create file filter from custom fileConfig, if provided

* refactor: use logger utility to avoid overly verbose axios error logs when using RAG_API

* fix(useFileHandling): use memoization/callbacks to make sure the appropriate fileConfig is used; refactor: move endpoint to first field applied to formdata

* chore: update librechat-data-provider version to 0.7.54

* chore: revert type change
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.

1 participant