v0.7.3 (#3067)

* refactor: revert BaseClient to use node-fetch instead of undici

* chore: bump version

* chore: update npm dependencies to latest versions

* chore: fix custom footer
This commit is contained in:
Danny Avila 2024-06-15 12:17:10 -04:00 committed by GitHub
parent 8d8b17e7ed
commit 0294cfc881
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 27 additions and 28 deletions

View file

@ -1,6 +1,5 @@
const crypto = require('crypto');
const { fetch } = require('undici');
const nodeFetch = require('node-fetch');
const fetch = require('node-fetch');
const { supportsBalanceCheck, Constants } = require('librechat-data-provider');
const { getConvo, getMessages, saveMessage, updateMessage, saveConvo } = require('~/models');
const { addSpaceIfNeeded, isEnabled } = require('~/server/utils');
@ -71,7 +70,7 @@ class BaseClient {
}
logger.debug(`Making request to ${url}`);
if (typeof Bun !== 'undefined') {
return await nodeFetch(url, init);
return await fetch(url, init);
}
return await fetch(url, init);
}