mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Adding a new parameter for model, and updating the default to 2.5 Flash. (#18)
This commit is contained in:
@@ -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'}>> </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>
|
||||
|
||||
Reference in New Issue
Block a user