mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🌐 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:
parent
f5a754c8be
commit
ebcca16b94
5 changed files with 201 additions and 17 deletions
|
|
@ -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(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue