Adding a new parameter for model, and updating the default to 2.5 Flash. (#18)

This commit is contained in:
Evan Senter
2025-04-18 17:06:16 +01:00
committed by GitHub
parent b56d9c8639
commit cb30351403
7 changed files with 81 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { Box, Text } from 'ink';
import TextInput from 'ink-text-input';
import { getModel } from '../../config/globalConfig.js';
interface InputPromptProps {
query: string;
@@ -14,6 +15,8 @@ const InputPrompt: React.FC<InputPromptProps> = ({
setQuery,
onSubmit,
}) => {
const model = getModel();
return (
<Box marginTop={1} borderStyle="round" borderColor={'white'} paddingX={1}>
<Text color={'white'}>&gt; </Text>
@@ -24,7 +27,7 @@ const InputPrompt: React.FC<InputPromptProps> = ({
onSubmit={onSubmit}
showCursor={true}
focus={true}
placeholder={'Ask Gemini... (try "/init" or "/help")'}
placeholder={`Ask Gemini (${model})... (try "/init" or "/help")`}
/>
</Box>
</Box>