Skip to content

Commit 8b95f5b

Browse files
committed
fix: bugs
1 parent ac3d6cd commit 8b95f5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bindings/Llama.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ function logMessageIsOnlyDots(message: string | null) {
670670
}
671671

672672
function getTransformedLogLevel(level: LlamaLogLevel, message: string, gpu: BuildGpu): LlamaLogLevel {
673-
if (level === LlamaLogLevel.warn && message.trimEnd().endsWith("the full capacity of the model will not be utilized"))
673+
if (level === LlamaLogLevel.warn && message.endsWith("the full capacity of the model will not be utilized"))
674674
return LlamaLogLevel.info;
675675
else if (level === LlamaLogLevel.warn && message.startsWith("ggml_metal_init: skipping kernel_") && message.endsWith("(not supported)"))
676676
return LlamaLogLevel.log;

0 commit comments

Comments
 (0)