联网搜索
Hi there,
Currently, LemonAI relies on the default search mechanism, so there isn't a built-in switch to forcibly disable it in the settings. However, if you want to force the agent to use your internal MCP search instead, here are three solutions:
- Explicit Prompting: When asking questions, explicitly instruct the model: "Do not use
websearch, please use the MCP search tool." - Experience Configuration: Add this instruction to the agent's "Experience" settings so it remembers your preference automatically.
- Source Code Modification: You can modify
src/tools/index.jsby addingweb_searchto theignoredlist.
Note: I noticed from your screenshot that you are using the gamma-3-4b model. Please be aware that for complex scenarios (like distinguishing between similar tools), this model size might not be sufficient. It may occasionally misinterpret the tool calling logic or generate incorrect code.
OK,i'll try to fix and very thanks for U replace.
发自 Outlookhttp://aka.ms/weboutlook
发件人: Hexdo @.> 发送时间: 2025年12月15日 16:07 收件人: hexdocom/lemonai @.> 抄送: 众外人 @.>; Author @.> 主题: Re: [hexdocom/lemonai] 联网搜索 (Issue #72)
[https://avatars.githubusercontent.com/u/142013412?s=20&v=4]HexdoAI left a comment (hexdocom/lemonai#72)https://github.com/hexdocom/lemonai/issues/72#issuecomment-3654323076
Hi there,
Currently, LemonAI relies on the default search mechanism, so there isn't a built-in switch to forcibly disable it in the settings. However, if you want to force the agent to use your internal MCP search instead, here are three solutions:
- Explicit Prompting: When asking questions, explicitly instruct the model: "Do not use websearch, please use the MCP search tool."
- Experience Configuration: Add this instruction to the agent's "Experience" settings so it remembers your preference automatically.
- Source Code Modification: You can modify src/tools/index.js by adding web_search to the ignored list.
Note: I noticed from your screenshot that you are using the gamma-3-4b model. Please be aware that for complex scenarios (like distinguishing between similar tools), this model size might not be sufficient. It may occasionally misinterpret the tool calling logic or generate incorrect code.
― Reply to this email directly, view it on GitHubhttps://github.com/hexdocom/lemonai/issues/72#issuecomment-3654323076, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZDXB6SZR7K6M7B5TALQC2D4BZT37AVCNFSM6AAAAACO552D4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNJUGMZDGMBXGY. You are receiving this because you authored the thread.Message ID: @.***>