Buckets:
| // | |
| // Created by Han Yin on 10/31/25. | |
| // | |
| static inline int ai_should_log(int prio) { | |
| return __android_log_is_loggable(prio, LOG_TAG, LOG_MIN_LEVEL); | |
| } | |
| static inline int android_log_prio_from_ggml(enum ggml_log_level level) { | |
| switch (level) { | |
| case GGML_LOG_LEVEL_ERROR: return ANDROID_LOG_ERROR; | |
| case GGML_LOG_LEVEL_WARN: return ANDROID_LOG_WARN; | |
| case GGML_LOG_LEVEL_INFO: return ANDROID_LOG_INFO; | |
| case GGML_LOG_LEVEL_DEBUG: return ANDROID_LOG_DEBUG; | |
| default: return ANDROID_LOG_DEFAULT; | |
| } | |
| } | |
| static inline void aichat_android_log_callback(enum ggml_log_level level, | |
| const char* text, | |
| void* /*user*/) { | |
| const int prio = android_log_prio_from_ggml(level); | |
| if (!ai_should_log(prio)) return; | |
| __android_log_write(prio, LOG_TAG, text); | |
| } | |
Xet Storage Details
- Size:
- 2.07 kB
- Xet hash:
- 672c5c03cfbe7c99fc7acdadbfb83fb31f3519daff9bc376b7c71a0562a285d4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.