mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-04 06:30:53 +00:00
refactor(core): rename read_file parameter from absolute_path to file_path
This unifies the parameter naming convention across file-related tools (edit, write_file, read_file) to consistently use file_path. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
9d6aca8efe
commit
9824e395a8
7 changed files with 62 additions and 73 deletions
|
|
@ -181,10 +181,7 @@ function calculateFileStats(records: ChatRecord[]): FileOperationStats {
|
|||
let filePath: string;
|
||||
if (typeof display.fileName === 'string') {
|
||||
// Prefer args.file_path for full path, fallback to fileName (which may be basename)
|
||||
filePath =
|
||||
(args?.['file_path'] as string) ||
|
||||
(args?.['absolute_path'] as string) ||
|
||||
display.fileName;
|
||||
filePath = (args?.['file_path'] as string) || display.fileName;
|
||||
} else {
|
||||
// Fallback if fileName is not a string
|
||||
filePath = 'unknown';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue