Skip to content

Commit

Permalink
Update Leo help links (#27051)
Browse files Browse the repository at this point in the history
  • Loading branch information
diracdeltas authored Dec 18, 2024
1 parent ba1e1f0 commit f90165a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@

namespace {
constexpr char kURLLearnMoreBraveSearchLeo[] =
"https://support.brave.com/hc/en-us/categories/20990938292237-Brave-Leo";
"https://support.brave.com/hc/en-us/articles/"
"27586048343309-How-does-Leo-get-current-information";

// Implments the interface to calls from the UI to the browser
class UIHandler : public ai_chat::mojom::UntrustedUIHandler {
Expand Down
4 changes: 2 additions & 2 deletions components/ai_chat/core/browser/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ inline constexpr auto kPrintPreviewRetrievalHosts =

inline constexpr uint8_t kMaxPreviewPages = 20;
inline constexpr char kLeoModelSupportUrl[] =
"https://support.brave.com/hc/en-us/categories/"
"20990938292237-Brave-Leo";
"https://support.brave.com/hc/en-us/articles/26727364100493-"
"What-are-the-differences-between-Leo-s-AI-Models";

// Upon registering a custom model, users have the ability to explicitly
// provide a context size (in tokens). When present, we'll use this value to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ struct AIChatResponseMessageView: View {
period.foregroundColor = Color(braveSystemName: .textPrimary)

var learnMoreLink = AttributedString(Strings.learnMore)
learnMoreLink.link = AIChatConstants.braveLeoLearnMore
learnMoreLink.link = AIChatConstants.braveLeoSearchLearnMore
learnMoreLink.font = font
learnMoreLink.foregroundColor = Color(braveSystemName: .textTertiary)
learnMoreLink.underlineColor = UIColor(braveSystemName: .textTertiary)
Expand Down
4 changes: 4 additions & 0 deletions ios/brave-ios/Sources/AIChat/Constants/AIChatConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ public struct AIChatConstants {
static let braveLeoLearnMore = URL(
string: "https://support.brave.com/hc/en-us/categories/20990938292237-Brave-Leo"
)!
static let braveLeoSearchLearnMore = URL(
string:
"https://support.brave.com/hc/en-us/articles/27586048343309-How-does-Leo-get-current-information"
)!
static let braveSearchURL = URL(string: "https://search.brave.com/search")!
}
3 changes: 2 additions & 1 deletion ios/brave-ios/Sources/BraveShared/BraveURLs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ extension URL {
string: "https://account.brave.com/?intent=recover&product=leo&ux=mobile"
)!
public static let braveLeoModelCategorySupport = URL(
string: "https://support.brave.com/hc/en-us/categories/20990938292237-Brave-Leo"
string:
"https://support.brave.com/hc/en-us/articles/26727364100493-What-are-the-differences-between-Leo-s-AI-Models"
)!
public static let braveVPNSmartProxySupport = URL(
string:
Expand Down

0 comments on commit f90165a

Please sign in to comment.