mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
Remove duplicate CLI tools module, remove the global tool registry (#89)
This commit is contained in:
parent
2571e07175
commit
baf39042c8
11 changed files with 46 additions and 148 deletions
|
|
@ -35,7 +35,6 @@ import {
|
|||
IndividualToolCallDisplay,
|
||||
ToolCallStatus,
|
||||
} from '../types.js';
|
||||
import { toolRegistry } from '../../tools/tool-registry.js';
|
||||
|
||||
const addHistoryItem = (
|
||||
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
|
||||
|
|
@ -53,6 +52,7 @@ export const useGeminiStream = (
|
|||
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
|
||||
config: Config,
|
||||
) => {
|
||||
const toolRegistry = config.getToolRegistry();
|
||||
const [streamingState, setStreamingState] = useState<StreamingState>(
|
||||
StreamingState.Idle,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue