mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-14 02:38:50 +02:00
38adc7d469
* webui: architecture foundation (non-MCP core refactors) * chore: update webui build output
12 lines
377 B
TypeScript
12 lines
377 B
TypeScript
export interface BinaryDetectionOptions {
|
|
prefixLength: number;
|
|
suspiciousCharThresholdRatio: number;
|
|
maxAbsoluteNullBytes: number;
|
|
}
|
|
|
|
export const DEFAULT_BINARY_DETECTION_OPTIONS: BinaryDetectionOptions = {
|
|
prefixLength: 1024 * 10, // Check the first 10KB of the string
|
|
suspiciousCharThresholdRatio: 0.15, // Allow up to 15% suspicious chars
|
|
maxAbsoluteNullBytes: 2
|
|
};
|