From a649bc355701bbf7f9dbc236389e34a436a12399 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Thu, 12 Feb 2026 00:36:14 +0000 Subject: [PATCH] Fix namespace references in api_client.cc Qualify color constants and APIClient with the gcpp namespace in gemma/api_client.cc to resolve potential symbol lookup issues. --- gemma/api_client.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gemma/api_client.cc b/gemma/api_client.cc index e6ce191..23c54be 100644 --- a/gemma/api_client.cc +++ b/gemma/api_client.cc @@ -394,11 +394,11 @@ int main(int argc, char* argv[]) { client_args.port = 443; } - std::cout << BOLD << YELLOW << "🚀 Testing API Server at " << client_args.host - << ":" << client_args.port << RESET << std::endl; + std::cout << gcpp::BOLD << gcpp::YELLOW << "🚀 Testing API Server at " << client_args.host + << ":" << client_args.port << gcpp::RESET << std::endl; try { - APIClient client(client_args.host, client_args.port, client_args.api_key, + gcpp::APIClient client(client_args.host, client_args.port, client_args.api_key, client_args.model); if (client_args.interactive) { @@ -408,7 +408,7 @@ int main(int argc, char* argv[]) { client.TestGenerateContent(client_args.prompt, true); } } catch (const std::exception& e) { - std::cerr << RED << "❌ Error: " << e.what() << RESET << std::endl; + std::cerr << gcpp::RED << "❌ Error: " << e.what() << gcpp::RESET << std::endl; std::cerr << "Make sure the API server is running:" << std::endl; std::cerr << " ./build/gemma_api_server --tokenizer --weights "