Compare commits
2 Commits
ef00e87e86
...
1bc8d41559
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bc8d41559 | ||
|
|
5a72eb7c64 |
@ -8,9 +8,9 @@ namespace GLMSearch.Tools
|
||||
[McpServerToolType]
|
||||
public static class GLMWebSearch
|
||||
{
|
||||
[McpServerTool(Name = "WebSearch"), Description("通过关键字进行Web搜索")]
|
||||
[McpServerTool(Name = "WebSearch"), Description("通过关键字进行Web搜索。返回结果中包含当前的日期,如有必要,请注意甄别搜索结果的时效性。")]
|
||||
public static string WebSearch(
|
||||
[Description("搜索关键字")] string keyword,
|
||||
[Description("搜索关键字,注意要输入检索的关键字而不是问题本身,要解决一个问题可能需要多次搜索,直接搜索问题本身可能会限定搜索范围。")] string keyword,
|
||||
[Description("搜索引擎,请务必从[search_std,search_pro,search_pro_quark]中选择一个,默认是search_pro_quark,当返回失败或检索内容过少时可以尝试切换其他搜索引擎")] string search_engine = "search_pro_quark")
|
||||
{
|
||||
Console.WriteLine($"接收到搜索任务:{keyword}");
|
||||
@ -44,7 +44,8 @@ namespace GLMSearch.Tools
|
||||
new JProperty("content", result["content"]),
|
||||
new JProperty("title", result["title"]),
|
||||
new JProperty("media", result["media"]),
|
||||
new JProperty("link", result["link"])
|
||||
new JProperty("link", result["link"]),
|
||||
new JProperty("today", DateTime.Now.ToString("yyyy-MM-dd"))
|
||||
);
|
||||
}).ToList();
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ namespace GLMSearch.Tool
|
||||
filteredPayload[prop.Name] = value;
|
||||
}
|
||||
}
|
||||
var response = "http://148.135.77.70:8010/tts"
|
||||
var response = "https://tts.01061220.xyz/tts"
|
||||
.SetQueryParams(filteredPayload).GetAsync().GetAwaiter().GetResult();
|
||||
if (response != null)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user