2025-11-13 19:11:06 -08:00
|
|
|
/**
|
|
|
|
|
* @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';
|
2026-02-20 14:19:21 -05:00
|
|
|
import { getDisplayString } from '@google/gemini-cli-core';
|
2025-11-13 19:11:06 -08:00
|
|
|
|
|
|
|
|
interface ModelMessageProps {
|
|
|
|
|
model: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const ModelMessage: React.FC<ModelMessageProps> = ({ model }) => (
|
2025-11-13 21:13:39 -08:00
|
|
|
<Box marginLeft={2}>
|
2025-11-13 19:11:06 -08:00
|
|
|
<Text color={theme.ui.comment} italic>
|
2026-02-20 14:19:21 -05:00
|
|
|
Responding with {getDisplayString(model)}
|
2025-11-13 19:11:06 -08:00
|
|
|
</Text>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|