Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
petemill committed Jan 9, 2024
1 parent 7838ad5 commit f4fa11c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/ai_chat/core/browser/conversation_driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ConversationDriver::ConversationDriver(
*current_default != features::kAIModelsPremiumDefaultKey.Get()) {
instance->pref_service_->SetDefaultPrefValue(
prefs::kDefaultModelKey,
base::Value(features::kAIModelsPremiumDefaultKey.Get()));
base::Value(features::kAIModelsPremiumDefaultKey.Get()));
}
},
// Unretained is ok as credential manager is owned by this class,
Expand Down
8 changes: 4 additions & 4 deletions components/ai_chat/core/common/features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ BASE_FEATURE(kAIChat,
base::FEATURE_DISABLED_BY_DEFAULT
#endif
);
const base::FeatureParam<std::string> kAIModelsDefaultKey{&kAIChat, "default_model",
"chat-leo-expanded"};
const base::FeatureParam<std::string> kAIModelsPremiumDefaultKey{&kAIChat, "default_premium_model",
"chat-claude-instant"};
const base::FeatureParam<std::string> kAIModelsDefaultKey{
&kAIChat, "default_model", "chat-leo-expanded"};
const base::FeatureParam<std::string> kAIModelsPremiumDefaultKey{
&kAIChat, "default_premium_model", "chat-claude-instant"};
const base::FeatureParam<bool> kAIChatSSE{&kAIChat, "ai_chat_sse", true};
const base::FeatureParam<double> kAITemperature{&kAIChat, "temperature", 0.2};

Expand Down
3 changes: 2 additions & 1 deletion components/ai_chat/core/common/pref_names.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ void RegisterProfilePrefs(PrefRegistrySimple* registry) {
registry->RegisterTimePref(kLastAcceptedDisclaimer, {});
registry->RegisterBooleanPref(kBraveChatAutocompleteProviderEnabled, true);
registry->RegisterBooleanPref(kUserDismissedPremiumPrompt, false);
registry->RegisterStringPref(kDefaultModelKey, features::kAIModelsDefaultKey.Get());
registry->RegisterStringPref(kDefaultModelKey,
features::kAIModelsDefaultKey.Get());
#if BUILDFLAG(IS_ANDROID)
registry->RegisterBooleanPref(kBraveChatSubscriptionActiveAndroid, false);
registry->RegisterStringPref(kBraveChatPurchaseTokenAndroid, "");
Expand Down

0 comments on commit f4fa11c

Please sign in to comment.