Exposing GGMLLogLevel for custom log callbacks (#203)
* Made GGMLLogLevel public
This commit is contained in:
parent
d57171554a
commit
54799643e2
2 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ pub(crate) use {generic_debug, generic_error, generic_info, generic_trace, gener
|
|||
// Of course Windows thinks it's a special little shit and
|
||||
// picks a signed integer for an unsigned type
|
||||
#[cfg_attr(all(windows, not(target_env = "gnu")), repr(i32))]
|
||||
pub(crate) enum GGMLLogLevel {
|
||||
pub enum GGMLLogLevel {
|
||||
None = whisper_rs_sys::ggml_log_level_GGML_LOG_LEVEL_NONE,
|
||||
Info = whisper_rs_sys::ggml_log_level_GGML_LOG_LEVEL_INFO,
|
||||
Warn = whisper_rs_sys::ggml_log_level_GGML_LOG_LEVEL_WARN,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ mod whisper_logging_hook;
|
|||
mod whisper_params;
|
||||
mod whisper_state;
|
||||
|
||||
pub use common_logging::GGMLLogLevel;
|
||||
pub use error::WhisperError;
|
||||
pub use standalone::*;
|
||||
pub use utilities::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue