diff --git a/engine/common/message_content_text.h b/engine/common/message_content_text.h index 5a64a2f80..4401f755d 100644 --- a/engine/common/message_content_text.h +++ b/engine/common/message_content_text.h @@ -192,7 +192,7 @@ struct Text : JsonSerializable { } json["annotations"] = annotations_json_arr; return json; - } catch (const std::exception e) { + } catch (const std::exception & e) { return cpp::fail(std::string("ToJson failed: ") + e.what()); } }; diff --git a/engine/utils/hardware/gguf/gguf_file.h b/engine/utils/hardware/gguf/gguf_file.h index 640c1b49f..7388315ef 100644 --- a/engine/utils/hardware/gguf/gguf_file.h +++ b/engine/utils/hardware/gguf/gguf_file.h @@ -25,11 +25,12 @@ #include "ggml.h" #include "utils/logging_utils.h" #include "utils/string_utils.h" - -// #define GGUF_LOG(msg) \ -// do { \ -// std::cout << __FILE__ << "(@" << __LINE__ << "): " << msg << '\n'; \ -// } while (false) +/* +#define GGUF_LOG(msg) \ + do { \ + std::cout << __FILE__ << "(@" << __LINE__ << "): " << msg << '\n'; \ + } while (false) +*/ #define GGUF_LOG(msg) namespace hardware {