mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-02 13:40:46 +00:00
remove unnecessary checks in WriteFileChecks.getDescription (#5526)
This commit is contained in:
parent
d1bfba1abb
commit
5caf23d627
2 changed files with 29 additions and 3 deletions
|
|
@ -131,8 +131,8 @@ export class WriteFileTool
|
|||
}
|
||||
|
||||
getDescription(params: WriteFileToolParams): string {
|
||||
if (!params.file_path || !params.content) {
|
||||
return `Model did not provide valid parameters for write file tool`;
|
||||
if (!params.file_path) {
|
||||
return `Model did not provide valid parameters for write file tool, missing or empty "file_path"`;
|
||||
}
|
||||
const relativePath = makeRelative(
|
||||
params.file_path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue