mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Show error instead of aborting if model fails to call tool (#7005)
This commit is contained in:
committed by
GitHub
parent
ade703944d
commit
7fa592f342
@@ -370,7 +370,9 @@ class Session {
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
const invocation = tool.build(args);
|
||||
|
||||
const confirmationDetails =
|
||||
await invocation.shouldConfirmExecute(abortSignal);
|
||||
|
||||
@@ -437,7 +439,6 @@ class Session {
|
||||
});
|
||||
}
|
||||
|
||||
try {
|
||||
const toolResult: ToolResult = await invocation.execute(abortSignal);
|
||||
const content = toToolCallContent(toolResult);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user