mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-16 07:51:32 +03:00
feat: allow any reverse proxy URLs, add proxy support to model fetching (#1192)
* feat: allow any reverse proxy URLs * feat: add proxy support to model fetching
This commit is contained in:
@@ -28,9 +28,9 @@ describe('extractBaseURL', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('should return null if the URL does not match the expected pattern', () => {
|
||||
test('should return input if the URL does not match the expected pattern', () => {
|
||||
const url = 'https://someotherdomain.com/notv1';
|
||||
expect(extractBaseURL(url)).toBeNull();
|
||||
expect(extractBaseURL(url)).toBe(url);
|
||||
});
|
||||
|
||||
// Test our JSDoc examples.
|
||||
|
||||
Reference in New Issue
Block a user