mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 11:34:44 -07:00
Fix tool output fragmentation by encapsulating content in functionResponse (#13082)
This commit is contained in:
@@ -14,8 +14,25 @@ import {
|
||||
GEMINI_MODEL_ALIAS_PRO,
|
||||
GEMINI_MODEL_ALIAS_FLASH,
|
||||
GEMINI_MODEL_ALIAS_FLASH_LITE,
|
||||
supportsMultimodalFunctionResponse,
|
||||
} from './models.js';
|
||||
|
||||
describe('supportsMultimodalFunctionResponse', () => {
|
||||
it('should return true for gemini-3 model', () => {
|
||||
expect(supportsMultimodalFunctionResponse('gemini-3-pro')).toBe(true);
|
||||
});
|
||||
|
||||
it('should return false for gemini-2 models', () => {
|
||||
expect(supportsMultimodalFunctionResponse('gemini-2.5-pro')).toBe(false);
|
||||
expect(supportsMultimodalFunctionResponse('gemini-2.5-flash')).toBe(false);
|
||||
});
|
||||
|
||||
it('should return false for other models', () => {
|
||||
expect(supportsMultimodalFunctionResponse('some-other-model')).toBe(false);
|
||||
expect(supportsMultimodalFunctionResponse('')).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getEffectiveModel', () => {
|
||||
describe('When NOT in fallback mode', () => {
|
||||
const isInFallbackMode = false;
|
||||
|
||||
Reference in New Issue
Block a user