mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-09 08:27:00 -07:00
ed8f7f6766
* feat(models): add support for Gemini 3.1 and custom tool models * test(routing): fix classifier and numerical classifier strategy tests * test(routing): add Gemini 3.1 tests for classifier strategy * fix(models): correctly filter active Gemini 3.1 models * fix(routing): ensure useCustomToolModel is only true when Gemini 3.1 is enabled * fix(test-utils): prevent double newline in lastFrame() on Windows * fix(test-utils): surgically fix double newline in lastFrame() on Windows * use custom_tools_model string for api key only * fix(ui): correct useCustomToolModel logic and update tests * fix(ui): correct useCustomToolModel logic in StatsDisplay * fix(routing): ensure test models are active and sync useCustomToolModel logic
23 lines
527 B
TypeScript
23 lines
527 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import type React from 'react';
|
|
import { Text, Box } from 'ink';
|
|
import { theme } from '../../semantic-colors.js';
|
|
import { getDisplayString } from '@google/gemini-cli-core';
|
|
|
|
interface ModelMessageProps {
|
|
model: string;
|
|
}
|
|
|
|
export const ModelMessage: React.FC<ModelMessageProps> = ({ model }) => (
|
|
<Box marginLeft={2}>
|
|
<Text color={theme.ui.comment} italic>
|
|
Responding with {getDisplayString(model)}
|
|
</Text>
|
|
</Box>
|
|
);
|