mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Run model availability check in the background to speed up startup (#4256)
This commit is contained in:
@@ -151,14 +151,12 @@ describe('Server Config (config.ts)', () => {
|
||||
apiKey: 'test-key',
|
||||
};
|
||||
|
||||
(createContentGeneratorConfig as Mock).mockResolvedValue(
|
||||
mockContentConfig,
|
||||
);
|
||||
(createContentGeneratorConfig as Mock).mockReturnValue(mockContentConfig);
|
||||
|
||||
await config.refreshAuth(authType);
|
||||
|
||||
expect(createContentGeneratorConfig).toHaveBeenCalledWith(
|
||||
MODEL, // Should be called with the original model 'gemini-pro'
|
||||
config,
|
||||
authType,
|
||||
);
|
||||
// Verify that contentGeneratorConfig is updated with the new model
|
||||
|
||||
Reference in New Issue
Block a user