mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 05:00:46 +00:00
Adds shell command allowlist (#68)
* Wire through passthrough commands * Add default passthrough commands * Clean up config passing to useGeminiStream
This commit is contained in:
parent
f480ef4bbc
commit
a76d9b4dcf
4 changed files with 64 additions and 12 deletions
|
|
@ -32,7 +32,7 @@ export const App = ({ config }: AppProps) => {
|
|||
const [history, setHistory] = useState<HistoryItem[]>([]);
|
||||
const [startupWarnings, setStartupWarnings] = useState<string[]>([]);
|
||||
const { streamingState, submitQuery, initError, debugMessage } =
|
||||
useGeminiStream(setHistory, config.getApiKey(), config.getModel());
|
||||
useGeminiStream(setHistory, config);
|
||||
const { elapsedTime, currentLoadingPhrase } =
|
||||
useLoadingIndicator(streamingState);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue