You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
info:"Detects the emotional tone of responses (happy, calm, concerned, excited) and adjusts the voice to match. ElevenLabs voices change stability and style parameters; iOS voices adjust rate and pitch. Makes the assistant sound more natural and empathetic."
130
136
)
137
+
.onChange(of: emotionAwareTTSEnabled){ _, newValue in
Copy file name to clipboardExpand all lines: OpenGlasses/Sources/Services/NativeTools/WebSearchTool.swift
+74-5Lines changed: 74 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
import Foundation
2
2
3
-
/// Searches the web. Uses Perplexity AI when an API key is configured (grounded, cited answers).
4
-
/// Falls back to DuckDuckGo Instant Answer API (no API key needed) otherwise.
3
+
/// Searches the web. Prefers Perplexity AI, then Tavily, when an API key is configured
4
+
/// (grounded, cited answers). Falls back to DuckDuckGo Instant Answer API (no API key
5
+
/// needed) otherwise.
5
6
structWebSearchTool:NativeTool{
6
7
letname="web_search"
7
-
letdescription="Search the web for information. Uses Perplexity AI (with citations) when configured, otherwise DuckDuckGo. Returns a brief summary."
8
+
letdescription="Search the web for information. Uses Perplexity AI or Tavily (with citations) when configured, otherwise DuckDuckGo. Returns a brief summary."
0 commit comments