27 lines
743 B
TypeScript
27 lines
743 B
TypeScript
import { Box, Text } from "ink";
|
||
import React from "react";
|
||
|
||
interface ModelCapabilityWarningProps {
|
||
modelName: string;
|
||
}
|
||
|
||
const ModelCapabilityWarning: React.FC<ModelCapabilityWarningProps> = ({
|
||
modelName,
|
||
}) => {
|
||
return (
|
||
<Box flexDirection="column" paddingX={0}>
|
||
<Box flexDirection="row" alignItems="center">
|
||
<Text bold color="white">
|
||
{/* spaces in brackets to prevent prettier from fixing to 1 space */}
|
||
⚠️{" "}Model Capability Warning
|
||
</Text>
|
||
</Box>
|
||
<Text color="gray">
|
||
The model "{modelName}" is not recommended for use with cn due to
|
||
limited reasoning and tool calling capabilities
|
||
</Text>
|
||
</Box>
|
||
);
|
||
};
|
||
|
||
export { ModelCapabilityWarning };
|