Skip to content

Commit

Permalink
presubmit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansampson committed Dec 17, 2024
1 parent b440b02 commit a9d696c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions components/ai_chat/core/browser/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ static_library("browser") {
"constants.h",
"conversation_handler.cc",
"conversation_handler.h",
"engine/byom_api_client.cc",
"engine/byom_api_client.h",
"engine/conversation_api_client.cc",
"engine/conversation_api_client.h",
"engine/engine_consumer.cc",
"engine/engine_consumer.h",
"engine/engine_consumer_byom.cc",
"engine/engine_consumer_byom.h",
"engine/engine_consumer_claude.cc",
"engine/engine_consumer_claude.h",
"engine/engine_consumer_conversation_api.cc",
"engine/engine_consumer_conversation_api.h",
"engine/engine_consumer_llama.cc",
"engine/engine_consumer_llama.h",
"engine/engine_consumer_byom.cc",
"engine/engine_consumer_byom.h",
"engine/byom_api_client.cc",
"engine/byom_api_client.h",
"engine/remote_completion_client.cc",
"engine/remote_completion_client.h",
"local_models_updater.cc",
Expand Down Expand Up @@ -135,12 +135,12 @@ if (!is_ios) {
"ai_chat_service_unittest.cc",
"associated_content_driver_unittest.cc",
"conversation_handler_unittest.cc",
"engine/byom_api_client_unittest.cc",
"engine/conversation_api_client_unittest.cc",
"engine/engine_consumer_byom_unittest.cc",
"engine/engine_consumer_claude_unittest.cc",
"engine/engine_consumer_conversation_api_unittest.cc",
"engine/engine_consumer_llama_unittest.cc",
"engine/engine_consumer_byom_unittest.cc",
"engine/byom_api_client_unittest.cc",
"engine/test_utils.cc",
"engine/test_utils.h",
"local_models_updater_unittest.cc",
Expand Down
2 changes: 1 addition & 1 deletion components/ai_chat/core/browser/engine/byom_api_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void BYOMAPIClient::PerformRequest(
}

void BYOMAPIClient::OnQueryCompleted(GenerationCompletedCallback callback,
APIRequestResult result) {
APIRequestResult result) {
const bool success = result.Is2XXResponseCode();
// Handle successful request
if (success) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

#include "base/memory/weak_ptr.h"
#include "brave/components/ai_chat/core/browser/ai_chat_credential_manager.h"
#include "brave/components/ai_chat/core/browser/engine/engine_consumer.h"
#include "brave/components/ai_chat/core/browser/engine/byom_api_client.h"
#include "brave/components/ai_chat/core/browser/engine/engine_consumer.h"
#include "brave/components/ai_chat/core/common/mojom/ai_chat.mojom-forward.h"
#include "brave/components/ai_chat/core/common/mojom/ai_chat.mojom.h"

Expand Down
4 changes: 2 additions & 2 deletions components/ai_chat/core/browser/model_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
#include "base/values.h"
#include "brave/components/ai_chat/core/browser/constants.h"
#include "brave/components/ai_chat/core/browser/engine/engine_consumer.h"
#include "brave/components/ai_chat/core/browser/engine/engine_consumer_byom.h"
#include "brave/components/ai_chat/core/browser/engine/engine_consumer_claude.h"
#include "brave/components/ai_chat/core/browser/engine/engine_consumer_conversation_api.h"
#include "brave/components/ai_chat/core/browser/engine/engine_consumer_llama.h"
#include "brave/components/ai_chat/core/browser/engine/engine_consumer_byom.h"
#include "brave/components/ai_chat/core/browser/model_validator.h"
#include "brave/components/ai_chat/core/browser/utils.h"
#include "brave/components/ai_chat/core/common/features.h"
Expand Down Expand Up @@ -662,7 +662,7 @@ std::unique_ptr<EngineConsumer> ModelService::GetEngineForModel(
auto& custom_model_opts = model->options->get_custom_model_options();
DVLOG(1) << "Started AI engine: custom";
engine = std::make_unique<EngineConsumerBYOMRemote>(*custom_model_opts,
url_loader_factory);
url_loader_factory);
}

return engine;
Expand Down

0 comments on commit a9d696c

Please sign in to comment.