mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-03 14:10:43 +00:00
Add Intro text with list of /commands
This commit is contained in:
parent
bf659f1977
commit
fb23321514
4 changed files with 46 additions and 28 deletions
|
|
@ -32,8 +32,13 @@ interface AppProps {
|
|||
export const App = ({ config, cliVersion }: AppProps) => {
|
||||
const [history, setHistory] = useState<HistoryItem[]>([]);
|
||||
const [startupWarnings, setStartupWarnings] = useState<string[]>([]);
|
||||
const { streamingState, submitQuery, initError, debugMessage } =
|
||||
useGeminiStream(setHistory, config);
|
||||
const {
|
||||
streamingState,
|
||||
submitQuery,
|
||||
initError,
|
||||
debugMessage,
|
||||
slashCommands,
|
||||
} = useGeminiStream(setHistory, config);
|
||||
const { elapsedTime, currentLoadingPhrase } =
|
||||
useLoadingIndicator(streamingState);
|
||||
|
||||
|
|
@ -104,7 +109,7 @@ export const App = ({ config, cliVersion }: AppProps) => {
|
|||
<Box flexDirection="column" key={'header-' + index}>
|
||||
<Header />
|
||||
<Tips />
|
||||
<Intro />
|
||||
<Intro commands={slashCommands} />
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue