What happened?
when qwen coder use SearchText , it only 9 match, but api return 400,Range of input length should be [1, 1048576]] .
现在我们需要找到并修改所有调用getTranscodeConfig函数的地方。让我们搜索项目中对这个函数的调用:
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ✓ SearchText 'getTranscodeConfig' │
│ │
│ Found 9 matches │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✕ [API Error: 400 <400> InternalError.Algo.InvalidParameter: Range of input length should be [1, 1048576]]
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > 不要使用 SearchText 'getTranscodeConfig' ,会报错: [API Error: 400 <400> InternalError.Algo.InvalidParameter: Range of input length should be [1, 1048576]] │
│ ,你可以直接读取 RecorderTask.cpp │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────╮
│ ✓ ReadFile src/core/RecorderTask.cpp │
╰────────────────────────────────────────╯
✦ 我找到了需要修改的地方。在RecorderTask.cpp的第55-58行,需要修改对getTranscodeConfig函数的调用。让我修改这部分代码:
What did you expect to happen?
SearchText正常情况下9行内容不会超过长度,可能是工具调用的BUG,如果超过长度,可以分行分次读取结果,不应该报错。 SeachText时经常出现这个BUG。
Client information
Client Information
Run qwen to enter the interactive CLI, then run the /about command.
$ qwen /about
╭──────────────────────────────────────────────────────────────────────────╮
│ │
│ About Qwen Code │
│ │
│ CLI Version 0.0.14 │
│ Git Commit 9a0cb64a │
│ Model coder-model │
│ Sandbox no sandbox │
│ OS linux │
│ Auth Method qwen-oauth │
│ │
╰──────────────────────────────────────────────────────────────────────────╯
Login information
No response
Anything else we need to know?
No response
What happened?
when qwen coder use SearchText , it only 9 match, but api return 400,Range of input length should be [1, 1048576]] .
现在我们需要找到并修改所有调用getTranscodeConfig函数的地方。让我们搜索项目中对这个函数的调用:
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ✓ SearchText 'getTranscodeConfig' │
│ │
│ Found 9 matches │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✕ [API Error: 400 <400> InternalError.Algo.InvalidParameter: Range of input length should be [1, 1048576]]
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ > 不要使用 SearchText 'getTranscodeConfig' ,会报错: [API Error: 400 <400> InternalError.Algo.InvalidParameter: Range of input length should be [1, 1048576]] │
│ ,你可以直接读取 RecorderTask.cpp │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭────────────────────────────────────────╮
│ ✓ ReadFile src/core/RecorderTask.cpp │
╰────────────────────────────────────────╯
✦ 我找到了需要修改的地方。在RecorderTask.cpp的第55-58行,需要修改对getTranscodeConfig函数的调用。让我修改这部分代码:
What did you expect to happen?
SearchText正常情况下9行内容不会超过长度,可能是工具调用的BUG,如果超过长度,可以分行分次读取结果,不应该报错。 SeachText时经常出现这个BUG。
Client information
Client Information
Run
qwento enter the interactive CLI, then run the/aboutcommand.Login information
No response
Anything else we need to know?
No response