🌐 feat: librechat.yaml from URL (#2064)

* feat: librechat.yaml from URL

* doc update: librechat.yaml from URL

* update dotenv.md - typo

* Update loadCustomConfig.js

* ci: specs for loadCustomConfig

* fix(processFileURL): safe destructuring of saveURL result

---------

Co-authored-by: fuegovic <fueg@live.ca>
Co-authored-by: Fuegovic <32828263+fuegovic@users.noreply.github.com>
This commit is contained in:
Danny Avila 2024-03-11 10:52:54 -04:00 committed by GitHub
parent f5a754c8be
commit ebcca16b94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 201 additions and 17 deletions

View file

@ -147,7 +147,11 @@ const processDeleteRequest = async ({ req, files }) => {
const processFileURL = async ({ fileStrategy, userId, URL, fileName, basePath, context }) => {
const { saveURL, getFileURL } = getStrategyFunctions(fileStrategy);
try {
const { bytes, type, dimensions } = await saveURL({ userId, URL, fileName, basePath });
const {
bytes = 0,
type = '',
dimensions = {},
} = (await saveURL({ userId, URL, fileName, basePath })) || {};
const filepath = await getFileURL({ fileName: `${userId}/${fileName}`, basePath });
return await createFile(
{