mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-10 07:53:47 +00:00
Support multiple web search backends: SearXNG, Staan, and Tavily (#948)
This commit is contained in:
1 parent
4d8d30e15e
commit
4141e7c504
57 files changed
+3734
-1088
No files matched your search
@@ -17,4 +17,14 @@ public static class SafeSearchPolicyExtensions
|
||||
|
||||
_ => "0",
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The value Tavily expects for its safe search parameter.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Tavily knows filtering only as on or off, so a moderate policy is filtered as strictly as
|
||||
/// a strict one. Of the two ways to round that, filtering more than was asked for is the one
|
||||
/// that cannot surprise anyone.
|
||||
/// </remarks>
|
||||
public static bool ToTavilyValue(this SafeSearchPolicy policy) => policy is not SafeSearchPolicy.OFF;
|
||||
}
|
||||
Reference in new issue
Block a user