-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Tool names are not allowed to be [search] in Qwen-max model #1219
Comments
Yes, i got the same error, have to set 'disable_tools' in the config; |
I am wondering whether there is a list of tools being used in avante.nvim. |
@MrZLeo avante.nvim/lua/avante/llm_tools.lua Line 421 in b20b2ca
|
Add some little hack on lazy.nvim option table making can solve this: {
"yetone/avante.nvim",
opts = function()
local llm_tools = require("avante.llm_tools")
for _, tool in pairs(llm_tools.tools) do
if tool.name == "search" then
tool.name = "local_search"
end
end
---@diagnostic disable-next-line: inject-field
llm_tools.tools.local_search = llm_tools.search
end,
}, |
Cool! Maybe we should use AI to generate the missing documentation. 😂 |
Describe the bug
When I use Qwen-max (OpenAI API compatible) model, it report an error:
If we rename the tool name "search" to "search_keyword" in llm_tools.lua, it works well.
avante.nvim/lua/avante/llm_tools.lua
Line 435 in faa6728
To reproduce
No response
Expected behavior
No response
Installation method
Use lazy.nvim
Environment
NVIM v0.11.0-dev-af069c5
Repro
The text was updated successfully, but these errors were encountered: