new features
This commit is contained in:
@@ -224,6 +224,7 @@ struct MCPSettings: View {
|
||||
@AppStorage("mcpExecutable") private var executable = ""
|
||||
@AppStorage("mcpArguments") private var launchArguments = ""
|
||||
@AppStorage("builtInWebEnabled") private var builtInWebEnabled = true
|
||||
@AppStorage("automaticChatWebSearch") private var automaticChatWebSearch = true
|
||||
@AppStorage("webSearchEndpoint") private var webSearchEndpoint = ""
|
||||
@AppStorage("mcpConfigPath") private var configPath = ""
|
||||
@State private var token = ""
|
||||
@@ -288,6 +289,9 @@ struct MCPSettings: View {
|
||||
Label("Web Search & Page Retrieval", systemImage: "globe")
|
||||
}
|
||||
.onChange(of: builtInWebEnabled) { _, _ in studio.restoreToolsets() }
|
||||
Toggle("Automatically search the web for general chat questions", isOn: $automaticChatWebSearch)
|
||||
.disabled(!builtInWebEnabled)
|
||||
.help("Sends the question to the search provider. Explicit searches still work with this option off.")
|
||||
if studio.mcpConnections[.web]?.toolset != nil {
|
||||
Button("Inspect Web Tools") { selected = .web }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user