mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-30 06:47:42 +00:00
🌐 fix: Expose Gemini Models to Vertex AI Agents (#15234)
* 🌐 fix: Expose Gemini Models to Vertex AI Agents * ♻️ refactor: Resolve Shared Vertex Model Catalogs * fix: Preserve Exact Vertex Model Catalogs * style: Format Agent Model Selection * test: Preserve Native FS in Stable Diffusion Spec
This commit is contained in:
parent
3d808dc906
commit
8b1fcc0fc2
16 changed files with 287 additions and 34 deletions
|
|
@ -3,7 +3,6 @@ const axios = require('axios');
|
|||
const mockApplySSRFSafeAgentIfDirect = jest.fn();
|
||||
|
||||
jest.mock('axios', () => ({ post: jest.fn() }), { virtual: true });
|
||||
jest.mock('fs');
|
||||
jest.mock('sharp', () => jest.fn(), { virtual: true });
|
||||
jest.mock('uuid', () => ({ v4: jest.fn() }), { virtual: true });
|
||||
jest.mock('@librechat/data-schemas', () => ({
|
||||
|
|
@ -24,14 +23,10 @@ jest.mock(
|
|||
}),
|
||||
{ virtual: true },
|
||||
);
|
||||
jest.mock(
|
||||
'@librechat/api',
|
||||
() => ({
|
||||
applySSRFSafeAgentIfDirect: (...args) => mockApplySSRFSafeAgentIfDirect(...args),
|
||||
getBasePath: jest.fn(),
|
||||
}),
|
||||
{ virtual: true },
|
||||
);
|
||||
jest.mock('@librechat/api', () => ({
|
||||
applySSRFSafeAgentIfDirect: (...args) => mockApplySSRFSafeAgentIfDirect(...args),
|
||||
getBasePath: jest.fn(),
|
||||
}));
|
||||
jest.mock('~/config/paths', () => ({}), { virtual: true });
|
||||
|
||||
const StableDiffusionAPI = require('./StableDiffusion');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue