Skip to content

Commit

Permalink
Don't advertise brave.
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Treat <[email protected]>
  • Loading branch information
manyoso committed Aug 14, 2024
1 parent a673087 commit f118720
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gpt4all-chat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ qt_add_qml_module(chat
qml/AddCollectionView.qml
qml/AddModelView.qml
qml/ApplicationSettings.qml
qml/BraveSearchSettings.qml
qml/ChatDrawer.qml
qml/ChatView.qml
qml/CollectionsDrawer.qml
Expand Down Expand Up @@ -178,6 +177,7 @@ qt_add_qml_module(chat
qml/MyTextField.qml
qml/MyToolButton.qml
qml/MyWelcomeButton.qml
qml/WebSearchSettings.qml
RESOURCES
icons/antenna_1.svg
icons/antenna_2.svg
Expand Down
6 changes: 3 additions & 3 deletions gpt4all-chat/bravesearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ class BraveSearch : public Tool {
ToolEnums::Error error() const override { return m_error; }
QString errorString() const override { return m_errorString; }

QString name() const override { return tr("Brave Web Search"); }
QString description() const override { return tr("Search the web using brave"); }
QString function() const override { return "brave_search"; }
QString name() const override { return tr("Web Search"); }
QString description() const override { return tr("Search the web"); }
QString function() const override { return "web_search"; }
QJsonObject paramSchema() const override;
QJsonObject exampleParams() const override;
bool isBuiltin() const override { return true; }
Expand Down
2 changes: 1 addition & 1 deletion gpt4all-chat/chatllm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
// 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
qWarning() << "ERROR: Could not find the tool and correct parameters for " << toolCall;
return handleFailedToolCall(trimmed, elapsed);
Expand Down
4 changes: 2 additions & 2 deletions gpt4all-chat/qml/SettingsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Rectangle {
title: qsTr("LocalDocs")
}
ListElement {
title: qsTr("Brave Web Search")
title: qsTr("Web Search")
}
}

Expand Down Expand Up @@ -158,7 +158,7 @@ Rectangle {

MySettingsStack {
tabs: [
Component { BraveSearchSettings { } }
Component { WebSearchSettings { } }
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ MySettingsTab {

showRestoreDefaultsButton: true

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

Rectangle {
Expand Down

0 comments on commit f118720

Please sign in to comment.