mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
Adding a new parameter for model, and updating the default to 2.5 Flash. (#18)
This commit is contained in:
parent
b56d9c8639
commit
cb30351403
7 changed files with 81 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue