mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
Simple debug mode for CLI side (#66)
* Adds debug mode config flag. * Wire through debug lines * Add debug mode logging example * Run format * Run format again
This commit is contained in:
parent
99f5ed9ecb
commit
a66ad2e2af
5 changed files with 45 additions and 10 deletions
|
|
@ -31,11 +31,8 @@ interface AppProps {
|
|||
export const App = ({ config }: AppProps) => {
|
||||
const [history, setHistory] = useState<HistoryItem[]>([]);
|
||||
const [startupWarnings, setStartupWarnings] = useState<string[]>([]);
|
||||
const { streamingState, submitQuery, initError } = useGeminiStream(
|
||||
setHistory,
|
||||
config.getApiKey(),
|
||||
config.getModel(),
|
||||
);
|
||||
const { streamingState, submitQuery, initError, debugMessage } =
|
||||
useGeminiStream(setHistory, config.getApiKey(), config.getModel());
|
||||
const { elapsedTime, currentLoadingPhrase } =
|
||||
useLoadingIndicator(streamingState);
|
||||
|
||||
|
|
@ -147,7 +144,11 @@ export const App = ({ config }: AppProps) => {
|
|||
</>
|
||||
)}
|
||||
|
||||
<Footer queryLength={query.length} />
|
||||
<Footer
|
||||
queryLength={query.length}
|
||||
debugMode={config.getDebugMode()}
|
||||
debugMessage={debugMessage}
|
||||
/>
|
||||
<ITermDetectionWarning />
|
||||
</Box>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue