mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
✨ 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:
parent
8d8b17e7ed
commit
0294cfc881
12 changed files with 27 additions and 28 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue