Don't advertise brave.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-08-14 07:58:31 -04:00
parent a6730879dd
commit f118720717
5 changed files with 9 additions and 9 deletions

View File

@ -138,7 +138,6 @@ qt_add_qml_module(chat
qml/AddCollectionView.qml qml/AddCollectionView.qml
qml/AddModelView.qml qml/AddModelView.qml
qml/ApplicationSettings.qml qml/ApplicationSettings.qml
qml/BraveSearchSettings.qml
qml/ChatDrawer.qml qml/ChatDrawer.qml
qml/ChatView.qml qml/ChatView.qml
qml/CollectionsDrawer.qml qml/CollectionsDrawer.qml
@ -178,6 +177,7 @@ qt_add_qml_module(chat
qml/MyTextField.qml qml/MyTextField.qml
qml/MyToolButton.qml qml/MyToolButton.qml
qml/MyWelcomeButton.qml qml/MyWelcomeButton.qml
qml/WebSearchSettings.qml
RESOURCES RESOURCES
icons/antenna_1.svg icons/antenna_1.svg
icons/antenna_2.svg icons/antenna_2.svg

View File

@ -48,9 +48,9 @@ public:
ToolEnums::Error error() const override { return m_error; } ToolEnums::Error error() const override { return m_error; }
QString errorString() const override { return m_errorString; } QString errorString() const override { return m_errorString; }
QString name() const override { return tr("Brave Web Search"); } QString name() const override { return tr("Web Search"); }
QString description() const override { return tr("Search the web using brave"); } QString description() const override { return tr("Search the web"); }
QString function() const override { return "brave_search"; } QString function() const override { return "web_search"; }
QJsonObject paramSchema() const override; QJsonObject paramSchema() const override;
QJsonObject exampleParams() const override; QJsonObject exampleParams() const override;
bool isBuiltin() const override { return true; } bool isBuiltin() const override { return true; }

View File

@ -874,7 +874,7 @@ bool ChatLLM::promptInternal(const QList<QString> &collectionList, const QString
// FIXME: In the future this will try to match the tool call to a list of tools that are supported // FIXME: In the future this will try to match the tool call to a list of tools that are supported
// according to MySettings, but for now only brave search is supported // according to MySettings, but for now only brave search is supported
if (tool != "brave_search" || !args.contains("query")) { if (tool != "web_search" || !args.contains("query")) {
// FIXME: Need to surface errors to the UI // FIXME: Need to surface errors to the UI
qWarning() << "ERROR: Could not find the tool and correct parameters for " << toolCall; qWarning() << "ERROR: Could not find the tool and correct parameters for " << toolCall;
return handleFailedToolCall(trimmed, elapsed); return handleFailedToolCall(trimmed, elapsed);

View File

@ -35,7 +35,7 @@ Rectangle {
title: qsTr("LocalDocs") title: qsTr("LocalDocs")
} }
ListElement { ListElement {
title: qsTr("Brave Web Search") title: qsTr("Web Search")
} }
} }
@ -158,7 +158,7 @@ Rectangle {
MySettingsStack { MySettingsStack {
tabs: [ tabs: [
Component { BraveSearchSettings { } } Component { WebSearchSettings { } }
] ]
} }
} }

View File

@ -16,7 +16,7 @@ MySettingsTab {
showRestoreDefaultsButton: true showRestoreDefaultsButton: true
title: qsTr("Brave Web Search") title: qsTr("Web Search")
contentItem: ColumnLayout { contentItem: ColumnLayout {
id: root id: root
spacing: 30 spacing: 30
@ -27,7 +27,7 @@ MySettingsTab {
color: theme.grayRed900 color: theme.grayRed900
font.pixelSize: theme.fontSizeLarge font.pixelSize: theme.fontSizeLarge
font.bold: true font.bold: true
text: qsTr("Brave Web Search") text: qsTr("Web Search")
} }
Rectangle { Rectangle {