Repository Analysis

mudler/LocalAI

LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.

5.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of mudler/LocalAI, a Go project with 48,722 GitHub stars. SynthScan v2.0 examined 641,827 lines of code across 3348 source files, recording 2240 pattern matches distributed across 24 syntactic categories. The overall adjusted score of 5.0 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

5.0
Adjusted Score
5.0
Raw Score
100%
Time Factor
2026-08-28
Last Push
48.7K
Stars
Go
Language
641.8K
Lines of Code
3.3K
Files
2.2K
Pattern Hits
2026-08-29
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 3HIGH 129MEDIUM 230LOW 1878

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2240 distinct pattern matches across 24 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block1066 hits · 1050 pts
SeverityFileLineSnippetContext
LOWdocker-compose.yaml21 # Avoid probing remote gallery GGUF metadata during container startup.COMMENT
LOWdocker-compose.yaml41 # Here we can specify a list of models to run (see quickstart https://localai.io/basics/getting_started/#running-modCOMMENT
LOWdocker-compose.yaml61 # For legacy NVIDIA driver (for older NVIDIA Container Toolkit):COMMENT
LOWdocker-compose.distributed.yaml1# Docker Compose for LocalAI Distributed ModeCOMMENT
LOWdocker-compose.distributed.yaml61 # models directory at the SAME path (see "Shared Volume Mode" below).COMMENT
LOWdocker-compose.distributed.yaml141 # init: trueCOMMENT
LOWdocker-compose.distributed.yaml161 # backend-llama-cpp:COMMENT
LOWdocker-compose.distributed.yaml181 # will dynamically install the required backend via NATS whenCOMMENT
LOWcmd/launcher/internal/release_manager.go41type ReleaseManager struct {COMMENT
LOW.docker/llama-cpp-compile.sh21BUILD_TARGET=$(/LocalAI/.docker/llama-cpp-build-target.sh "${TARGETARCH}" "${BUILD_TYPE:-}")COMMENT
LOW.docker/llama-cpp-build-target.sh1#!/usr/bin/env bashCOMMENT
LOW.docker/install-base-deps.sh1#!/usr/bin/env bashCOMMENT
LOW.docker/install-base-deps.sh21# CUDA_MINOR_VERSION ("8" | "0" | "")COMMENT
LOW.docker/install-base-deps.sh121# above installs the Mesa drivers. Install it here so there is something to copy.COMMENT
LOW.docker/apt-mirror.sh1#!/bin/shCOMMENT
LOWcore/trace/audio_snippet.go21// ~-90 dBFS least-significant-bit floor, so it reads unambiguously asCOMMENT
LOWcore/trace/backend_trace.go261func CancelBackendTrace(id string) {COMMENT
LOWcore/config/model_config.go101 // gRPCPredictOpts), so jinja-templated models that key on it — e.g. gpt-ossCOMMENT
LOWcore/config/model_config.go181// can have a stricter ceiling than local models.COMMENT
LOWcore/config/model_config.go201// configuration error and disables the MITM listener until resolved.COMMENT
LOWcore/config/model_config.go221// routing (OpenAI client → Anthropic upstream, etc.) at the costCOMMENT
LOWcore/config/model_config.go241 // allowed (no-auth upstreams).COMMENT
LOWcore/config/model_config.go261COMMENT
LOWcore/config/model_config.go301// input.Model in-place, then the standard model-resolution path picksCOMMENT
LOWcore/config/model_config.go321 // "small talk", ...). The Score classifier picks the subset ofCOMMENT
LOWcore/config/model_config.go341 // against (Arch-Router-1.5B is the canonical choice).COMMENT
LOWcore/config/model_config.go361 // schema). Override when the classifier model was trained on aCOMMENT
LOWcore/config/model_config.go381 ScoreNormalization string `yaml:"score_normalization,omitempty" json:"score_normalization,omitempty"`COMMENT
LOWcore/config/model_config.go401// cache. Pairs naturally with a larger / slower classifier model: theCOMMENT
LOWcore/config/model_config.go421 // cached so they can't poison future paraphrases.COMMENT
LOWcore/config/model_config.go441type RouterKNNConfig struct {COMMENT
LOWcore/config/model_config.go461 // similar than this to the probe cannot vote, and when none clearCOMMENT
LOWcore/config/model_config.go541// HasRouter returns true when the model declares a router config withCOMMENT
LOWcore/config/model_config.go581COMMENT
LOWcore/config/model_config.go601 // Builtins names the built-in pattern groups this (pattern) detectorCOMMENT
LOWcore/config/model_config.go641 copy(out, c.PII.Detectors)COMMENT
LOWcore/config/model_config.go761 TTS string `yaml:"tts,omitempty" json:"tts,omitempty"`COMMENT
LOWcore/config/model_config.go781 // the pipeline's LLM without editing the LLM model config. Overrides the LLM'sCOMMENT
LOWcore/config/model_config.go801COMMENT
LOWcore/config/model_config.go821 // option's canned reply / tool call is emitted, so weak hardwareCOMMENT
LOWcore/config/model_config.go901type PipelineCompaction struct {COMMENT
LOWcore/config/model_config.go1041 // trust the session).COMMENT
LOWcore/config/model_config.go1181COMMENT
LOWcore/config/model_config.go1481 threads := lo.threadsCOMMENT
LOWcore/config/model_config.go1941 // prompt cache with generation.COMMENT
LOWcore/config/gguf.go21// (FLAG_CHAT, jinja templating): surfacing it in chat pickers defeats theCOMMENT
LOWcore/config/runtime_settings_startup.go81 f.apply(o, settings)COMMENT
LOWcore/config/vllm_spec.go1package configCOMMENT
LOWcore/config/vllm_spec.go21// speculative decoding can be auto-enabled.COMMENT
LOWcore/config/vllm_spec.go61 return len(c.DFlashConfig) > 0 ||COMMENT
LOWcore/config/model_load_budget.go1package configCOMMENT
LOWcore/config/model_load_budget.go21 // failure LATENCY on a load that was going to fail anyway, while erringCOMMENT
LOWcore/config/model_load_budget.go41)COMMENT
LOWcore/config/runtime_settings_persist.go41// faithful partial update: a caller that submits only the field it ownsCOMMENT
LOWcore/config/model_capabilities.go41}COMMENT
LOWcore/config/runtime_settings_persist_test.go141 got, err := cfg.ReadPersistedSettings()COMMENT
LOWcore/config/defaults.go1package configCOMMENT
LOWcore/config/defaults.go21 // DefaultAutoContextSize caps the context we auto-derive from a GGUF when theCOMMENT
LOWcore/config/context_fit.go21// candidate that fits.COMMENT
LOWcore/config/context_fit.go81// not clamp the context.COMMENT
1006 more matches not shown…
Cross-File Repetition118 hits · 590 pts
SeverityFileLineSnippetContext
HIGHbackend/python/pocket-tts/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/vibevoice/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/kitten-tts/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/whisperx/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/chatterbox/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/coqui/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/moonshine/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/neutts/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/qwen-tts/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/kokoro/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/faster-whisper/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/fish-speech/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/voxcpm/backend.py0backendservicer is the class that implements the grpc serviceSTRING
HIGHbackend/python/pocket-tts/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/vibevoice/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/kitten-tts/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/rerankers/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/diffusers/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/whisperx/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/chatterbox/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/coqui/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/moonshine/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/transformers/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/neutts/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/qwen-tts/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/kokoro/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/fish-speech/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/voxcpm/test.py0testbackendservicer is the class that tests the grpc serviceSTRING
HIGHbackend/python/pocket-tts/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/vibevoice/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/kitten-tts/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/rerankers/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/diffusers/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/whisperx/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/chatterbox/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/coqui/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/moonshine/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/transformers/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/neutts/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/qwen-tts/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/kokoro/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/fish-speech/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/voxcpm/test.py0this method sets up the grpc service by starting the serverSTRING
HIGHbackend/python/pocket-tts/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/vibevoice/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/kitten-tts/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/rerankers/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/diffusers/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/whisperx/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/chatterbox/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/coqui/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/moonshine/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/transformers/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/neutts/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/qwen-tts/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/kokoro/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/fish-speech/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/voxcpm/test.py0this method tears down the grpc service by terminating the serverSTRING
HIGHbackend/python/pocket-tts/test.py0this method tests if the server starts up successfullySTRING
HIGHbackend/python/vibevoice/test.py0this method tests if the server starts up successfullySTRING
58 more matches not shown…
Excessive Try-Catch Wrapping418 hits · 544 pts
SeverityFileLineSnippetContext
LOWtests/test_invariant_backend.py37 except Exception:CODE
MEDIUMbackend/python/liquid-audio/backend.py147def LoadModel(self, request, context):CODE
MEDIUMbackend/python/liquid-audio/backend.py218def Predict(self, request, context):CODE
MEDIUMbackend/python/liquid-audio/backend.py229def PredictStream(self, request, context):CODE
MEDIUMbackend/python/liquid-audio/backend.py301def TTS(self, request, context):CODE
MEDIUMbackend/python/liquid-audio/backend.py517def AudioTranscription(self, request, context):CODE
MEDIUMbackend/python/liquid-audio/backend.py618def _run_training(self, request, job):CODE
LOWbackend/python/liquid-audio/backend.py127 except Exception:CODE
LOWbackend/python/liquid-audio/backend.py135 except Exception:CODE
LOWbackend/python/liquid-audio/backend.py138 except Exception as exc:CODE
LOWbackend/python/liquid-audio/backend.py212 except Exception as exc:CODE
LOWbackend/python/liquid-audio/backend.py222 except Exception as exc:CODE
LOWbackend/python/liquid-audio/backend.py233 except Exception as exc:CODE
LOWbackend/python/liquid-audio/backend.py293 except Exception as exc:CODE
LOWbackend/python/liquid-audio/backend.py357 except Exception as exc:CODE
LOWbackend/python/liquid-audio/backend.py373 except Exception as exc:CODE
LOWbackend/python/liquid-audio/backend.py562 except Exception as exc:CODE
LOWbackend/python/liquid-audio/backend.py626 except Exception as exc:CODE
LOWbackend/python/liquid-audio/backend.py687 except Exception:CODE
LOWbackend/python/pocket-tts/backend.py117 except Exception as e:CODE
LOWbackend/python/pocket-tts/backend.py120 except Exception as err:CODE
LOWbackend/python/pocket-tts/backend.py150 except Exception as e:CODE
MEDIUMbackend/python/pocket-tts/backend.py151 print(f"Error loading voice from {voice_input}: {e}", file=sys.stderr)CODE
LOWbackend/python/pocket-tts/backend.py220 except Exception as err:CODE
MEDIUMbackend/python/pocket-tts/backend.py221 print(f"Error in TTS: {err}", file=sys.stderr)CODE
MEDIUMbackend/python/pocket-tts/backend.py154def TTS(self, request, context):CODE
LOWbackend/python/pocket-tts/test.py43 except Exception as err:CODE
LOWbackend/python/pocket-tts/test.py61 except Exception as err:CODE
LOWbackend/python/pocket-tts/test.py98 except Exception as err:CODE
LOWbackend/python/pocket-tts/test.py137 except Exception as err:CODE
LOWbackend/python/ace-step/backend.py291 except Exception:CODE
LOWbackend/python/ace-step/backend.py369 except Exception as e:CODE
LOWbackend/python/ace-step/backend.py391 except Exception as err:CODE
MEDIUMbackend/python/ace-step/backend.py308def LoadModel(self, request, context):CODE
LOWbackend/python/vibevoice/backend.py272 except Exception as e:CODE
MEDIUMbackend/python/vibevoice/backend.py276 print("Error loading the ASR model. Trying to use SDPA.", file=sys.stderr)CODE
LOWbackend/python/vibevoice/backend.py330 except Exception as e:CODE
MEDIUMbackend/python/vibevoice/backend.py334 print("Error loading the model. Trying to use SDPA. However, note that only flash_attention_2 haCODE
LOWbackend/python/vibevoice/backend.py359 except Exception as err:CODE
MEDIUMbackend/python/vibevoice/backend.py463 print(f"Error accessing self.device: {e}, falling back to CPU", file=sys.stderr)CODE
LOWbackend/python/vibevoice/backend.py577 except Exception as err:CODE
MEDIUMbackend/python/vibevoice/backend.py578 print(f"Error in TTS: {err}", file=sys.stderr)CODE
MEDIUMbackend/python/vibevoice/backend.py598 print(f"Error: Audio file not found: {audio_path}", file=sys.stderr)CODE
LOWbackend/python/vibevoice/backend.py691 except Exception as e:CODE
LOWbackend/python/vibevoice/backend.py717 except Exception as err:CODE
MEDIUMbackend/python/vibevoice/backend.py718 print(f"Error in AudioTranscription: {err}", file=sys.stderr)CODE
MEDIUMbackend/python/vibevoice/backend.py475def TTS(self, request, context):CODE
LOWbackend/python/vibevoice/test.py48 except Exception as err:CODE
LOWbackend/python/vibevoice/test.py66 except Exception as err:CODE
LOWbackend/python/vibevoice/test.py90 except Exception as err:CODE
LOWbackend/python/vibevoice/test.py128 except Exception as err:CODE
LOWbackend/python/vibevoice/test.py203 except Exception as err:CODE
LOWbackend/python/kitten-tts/backend.py56 except Exception as err:CODE
LOWbackend/python/kitten-tts/backend.py74 except Exception as err:CODE
MEDIUMbackend/python/kitten-tts/backend.py62def TTS(self, request, context):CODE
LOWbackend/python/kitten-tts/test.py41 except Exception as err:CODE
LOWbackend/python/kitten-tts/test.py59 except Exception as err:CODE
LOWbackend/python/kitten-tts/test.py78 except Exception as err:CODE
LOWbackend/python/rerankers/backend.py69 except Exception as err:CODE
LOWbackend/python/rerankers/test.py41 except Exception as err:CODE
358 more matches not shown…
Hyper-Verbose Identifiers204 hits · 235 pts
SeverityFileLineSnippetContext
LOWcore/http/react-ui/src/utils/artifacts.js151export function renderMarkdownWithArtifacts(text, messageIndex) {CODE
LOWcore/http/react-ui/src/utils/cmYamlComplete.js116export function createYamlCompletionSource(fields) {CODE
LOWcore/http/react-ui/src/utils/transferRate.js3export function createTransferRateSampler() {CODE
LOWcore/http/react-ui/src/pages/Usage.jsx182function generateFutureBucketLabels(lastBucket, count, period) {CODE
LOWcore/http/react-ui/src/pages/Middleware.jsx419function formatDecisionScoreSuffix(d, activeSet) {CODE
LOWcore/http/react-ui/src/pages/InstalledModels.jsx56export function ModelLifecycleDetailShell({CODE
LOWcore/http/react-ui/src/pages/BackendLogs.jsx279function DistributedBackendLogsResolver({ modelId, fromTimestamp }) {CODE
LOWcore/http/static/talk.js138function updateStreamingTranscript(role, delta) {CODE
LOWcore/http/static/talk.js148function finalizeStreamingTranscript(role, fullText) {CODE
LOWcore/http/static/chat.js544function startTokensPerSecondInterval() {CODE
LOWcore/http/static/chat.js640function stopTokensPerSecondInterval() {CODE
LOWcore/http/static/chat.js707function updateMaxTokensPerSecondBadge(chatId, maxRate) {CODE
LOWcore/http/static/chat.js729function scrollThinkingBoxToBottom() {CODE
LOWcore/http/static/chat.js1015function processAndSendMessage(inputValue) {CODE
LOWcore/http/static/assets/pdf.min.js22!function webpackUniversalModuleDefinition(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=t.pdfjsCODE
LOWtests/test_invariant_backend.py15def test_dataset_source_path_traversal_blocked(dataset_source):CODE
LOWbackend/python/liquid-audio/backend.py54def _patch_liquid_audio_local_paths():CODE
LOWbackend/python/liquid-audio/backend.py69 def _local_first_snapshot_download(repo_id, revision=None, **kwargs):CODE
LOWbackend/python/liquid-audio/test.py51 def test_load_finetune_mode_without_weights(self):CODE
LOWbackend/python/pocket-tts/test.py104 def test_tts_with_default_voice(self):CODE
LOWbackend/python/ace-step/test.py34 def test_sound_generation_minimal(self):CODE
LOWbackend/python/tinygrad/test.py63 def test_multi_call_and_thinking(self):CODE
LOWbackend/python/tinygrad/test.py76 def test_no_tool_call_is_passthrough(self):CODE
LOWbackend/python/tinygrad/test.py111 def test_keymap_renames_every_hf_key(self):CODE
LOWbackend/python/tinygrad/test.py129 def test_tied_embedding_fallback_when_lm_head_missing(self):CODE
LOWbackend/python/tinygrad/test.py135 def test_unknown_keys_are_skipped(self):CODE
LOWbackend/python/tinygrad/test.py144 def test_qkv_bias_models_rejected(self):CODE
LOWbackend/python/nemo/backend.py116 def _build_segments_with_words(self, hypothesis, stride, timestamp_granularities=None):CODE
LOWbackend/python/diffusers/test.py195 def test_resolve_pipeline_class_by_name(self):CODE
LOWbackend/python/diffusers/test.py200 def test_resolve_pipeline_class_by_name_case_insensitive(self):CODE
LOWbackend/python/diffusers/test.py206 def test_resolve_pipeline_class_by_task(self):CODE
LOWbackend/python/diffusers/test.py216 def test_resolve_pipeline_class_unknown_name_raises(self):CODE
LOWbackend/python/diffusers/test.py226 def test_resolve_pipeline_class_unknown_task_raises(self):CODE
LOWbackend/python/diffusers/test.py236 def test_resolve_pipeline_class_no_params_raises(self):CODE
LOWbackend/python/diffusers/test.py270 def test_discover_diffusers_classes_caches_results(self):CODE
LOWbackend/python/diffusers/test.py278 def test_discover_diffusers_classes_exclude_base(self):CODE
LOWbackend/python/diffusers/test.py285 def test_get_available_classes(self):CODE
LOWbackend/python/diffusers/test.py108 def test_camel_to_kebab_conversion(self):CODE
LOWbackend/python/diffusers/test.py121 def test_extract_task_keywords(self):CODE
LOWbackend/python/diffusers/test.py141 def test_discover_pipelines_finds_known_classes(self):CODE
LOWbackend/python/diffusers/test.py162 def test_discover_pipelines_caches_results(self):CODE
LOWbackend/python/diffusers/test.py171 def test_get_available_pipelines(self):CODE
LOWbackend/python/diffusers/test.py252 def test_get_pipeline_info_unknown_raises(self):CODE
LOWbackend/python/diffusers/test.py259 def test_discover_diffusers_classes_pipelines(self):CODE
LOWbackend/python/diffusers/test.py300 def test_load_pipeline_requires_model_id(self):CODE
LOWbackend/python/diffusers/test.py307 def test_resolve_with_model_id_uses_diffusion_pipeline_fallback(self):CODE
LOWbackend/python/diffusers/test.py326 def test_options_merged_into_pipeline_kwargs(self):CODE
LOWbackend/python/diffusers/diffusers_dynamic_loader.py124def discover_diffusers_classes(CODE
LOWbackend/python/chatterbox/backend.py54def split_text_at_word_boundary(text, max_length=250):CODE
LOWbackend/python/vllm/test.py171 def test_apply_engine_args_known_keys(self):CODE
LOWbackend/python/vllm/test.py192 def test_apply_engine_args_unknown_key_raises(self):CODE
LOWbackend/python/vllm/test.py209 def test_apply_engine_args_empty_passthrough(self):CODE
LOWbackend/python/vllm/test.py335 def test_buffer_path_no_markup_no_duplication(self):CODE
LOWbackend/python/vllm/test.py388 def test_native_streaming_progressive_plain_text(self):CODE
LOWbackend/python/vllm/test.py403 def extract_tool_calls_streaming(CODE
LOWbackend/python/vllm/test.py440 def test_native_streaming_tool_call_no_markup_leak(self):CODE
LOWbackend/python/vllm/test.py454 def extract_tool_calls_streaming(CODE
LOWbackend/python/vllm/test.py489 def test_native_streaming_parser_exception_falls_back_to_buffer(self):CODE
LOWbackend/python/vllm/test.py499 def extract_tool_calls_streaming(self, *a, **kw):CODE
LOWbackend/python/vllm/test.py523 def test_no_tool_parser_unchanged_per_delta_stream(self):CODE
144 more matches not shown…
Decorative Section Separators44 hits · 146 pts
SeverityFileLineSnippetContext
MEDIUMcore/schema/localai.go271// ─── Face recognition ──────────────────────────────────────────────COMMENT
MEDIUMcore/schema/localai.go398// ─── Voice (speaker) recognition ───────────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/Quantize.jsx19// ── Reusable sub-components ──────────────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/Quantize.jsx191// ── Main page ────────────────────────────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/FaceRecognition.jsx84// ──────────────────────────── Analyze ────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/FaceRecognition.jsx218// ──────────────────────────── Compare ────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/FaceRecognition.jsx333// ──────────────────────────── Enrollment (register / identify / forget) ────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/FaceRecognition.jsx516// ──────────────────────────── Embedding ────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/FaceRecognition.jsx570// ──────────────────────────── Small shared bits ────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/VoiceRecognition.jsx86// ──────────────────────────── Analyze ────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/VoiceRecognition.jsx196// ──────────────────────────── Compare ────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/VoiceRecognition.jsx288// ──────────────────────────── Enrollment ────────────────────────────COMMENT
MEDIUMcore/http/react-ui/src/pages/VoiceRecognition.jsx472// ──────────────────────────── Embedding ────────────────────────────COMMENT
MEDIUMcore/services/facerecognition/registry_test.go134// ─── fake gRPC backend ───────────────────────────────────────────────COMMENT
MEDIUMtests/e2e-backends/backend_test.go794 // ─── face recognition specs ─────────────────────────────────────────COMMENT
MEDIUMtests/e2e-backends/backend_test.go983 // ─── voice (speaker) recognition specs ──────────────────────────────COMMENT
MEDIUMtests/e2e-backends/backend_test.go1231// ─── ds4 layer-split distributed inference (opt-in, hardware-gated) ──────────COMMENT
MEDIUMbackend/go/parakeet-cpp/boundary.go23// open ───────────► closedCOMMENT
MEDIUMbackend/go/parakeet-cpp/boundary.go27// └──────────────────┘COMMENT
MEDIUMbackend/go/vllm-cpp/govllmcpp.go133// ── Video+audio generation (ABI v12, MiniMax-H3) ────────────────────────────COMMENT
MEDIUMbackend/python/tinygrad/backend.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/tinygrad/backend.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/tinygrad/backend.py72# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/tinygrad/backend.py74# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/tinygrad/backend.py158# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/tinygrad/backend.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/diffusers/backend.py245 # ================================================================COMMENT
MEDIUMbackend/python/diffusers/backend.py249 # ================================================================COMMENT
MEDIUMbackend/python/diffusers/backend.py460 # ================================================================COMMENT
MEDIUMbackend/python/diffusers/backend.py463 # ================================================================COMMENT
MEDIUMbackend/python/common/libbackend.sh34# =====================================================================COMMENT
MEDIUMbackend/python/trl/reward_functions.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/trl/reward_functions.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/trl/reward_functions.py116# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/trl/reward_functions.py118# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/trl/reward_functions.py130# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/trl/reward_functions.py132# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/trl/reward_functions.py192# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/trl/reward_functions.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend/python/insightface/engines.py61# ─── Antispoofer (Silent-Face MiniFASNet) ──────────────────────────────COMMENT
MEDIUMbackend/python/insightface/engines.py174# ─── InsightFaceEngine ────────────────────────────────────────────────COMMENT
MEDIUMbackend/python/insightface/engines.py375# ─── OnnxDirectEngine ─────────────────────────────────────────────────COMMENT
MEDIUMbackend/python/insightface/engines.py481# ─── helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUM.github/backend-matrix.yml7# --------------------------------------------------------COMMENT
Self-Referential Comments39 hits · 122 pts
SeverityFileLineSnippetContext
MEDIUM.devcontainer-scripts/utils.sh3# This file contains some really simple functions that are useful when building up customization scripts.COMMENT
MEDIUMbackend/go/sam3-cpp/test.sh22# Create a test image (4x4 red pixel PNG) using base64COMMENT
MEDIUMbackend/python/pocket-tts/backend.py241 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/vibevoice/backend.py739 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/vibevoice/test.py102 # Create a temporary directory for the output audio fileCOMMENT
MEDIUMbackend/python/vibevoice/test.py142 # Create a temporary directory for the audio fileCOMMENT
MEDIUMbackend/python/kitten-tts/backend.py92 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/rerankers/backend.py112 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/nemo/backend.py293 # Create a single segment with the full transcriptionCOMMENT
MEDIUMbackend/python/diffusers/backend.py1114 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/diffusers/test.py343 # Create a tiny source image for the request's src fieldCOMMENT
MEDIUMbackend/python/whisperx/backend.py153 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/whisperx/test.py71 # Create a temporary directory for the audio fileCOMMENT
MEDIUMbackend/python/chatterbox/backend.py266 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/coqui/backend.py113 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/moonshine/backend.py143 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/moonshine/test.py71 # Create a temporary directory for the audio fileCOMMENT
MEDIUMbackend/python/common/libbackend.sh338# This function is idempotent, so you can call it as many times as you want and it willCOMMENT
MEDIUMbackend/python/neutts/backend.py154 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/qwen-tts/backend.py966 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/rfdetr/backend.py154 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/kokoro/backend.py99 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/faster-whisper/backend.py101 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/fish-speech/backend.py451 # Define the signal handler functionCOMMENT
MEDIUMbackend/python/voxcpm/backend.py316 # Define the signal handler functionCOMMENT
MEDIUMscripts/nats-auth-setup.sh48# Create the operator if it does not exist, otherwise select it.COMMENT
MEDIUMscripts/nats-auth-setup.sh70# Create the LocalAI account if it does not exist.COMMENT
MEDIUMscripts/nats-auth-setup.sh79# Create the frontend service user if it does not exist.COMMENT
MEDIUM.github/backend-matrix.yml4# This file is NOT a workflow — it has no top-level 'on:' or 'jobs:'.COMMENT
MEDIUM.github/backend-matrix.yml8# This file is the source of truth for which OS each backend is built andCOMMENT
MEDIUM.github/workflows/gallery-agent.yaml162 # Create a formatted list of added models with URLsCOMMENT
MEDIUM.github/workflows/notify-releases.yaml25 # Define the LocalAI API endpointCOMMENT
MEDIUM.github/workflows/notify-releases.yaml28 # Create a JSON payload using jq to handle special charactersCOMMENT
MEDIUM.github/workflows/disabled/notify-models.yaml39 # Define the LocalAI API endpointCOMMENT
MEDIUM.github/workflows/disabled/notify-models.yaml42 # Create a JSON payload using jq to handle special charactersCOMMENT
MEDIUM.github/workflows/disabled/notify-models.yaml121 # Define the LocalAI API endpointCOMMENT
MEDIUM.github/workflows/disabled/notify-models.yaml124 # Create a JSON payload using jq to handle special charactersCOMMENT
MEDIUM.github/workflows/disabled/comment-pr.yaml39 # Define the LocalAI API endpointCOMMENT
MEDIUM.github/workflows/disabled/comment-pr.yaml42 # Create a JSON payload using jq to handle special charactersCOMMENT
Fake / Example Data77 hits · 84 pts
SeverityFileLineSnippetContext
LOWcore/http/auth/branding_routes_test.go75 user := createTestUser(db, "user@example.com", auth.RoleUser, auth.ProviderGitHub)CODE
LOWcore/http/auth/branding_routes_test.go84 admin := createTestUser(db, "admin@example.com", auth.RoleAdmin, auth.ProviderGitHub)CODE
LOWcore/http/auth/branding_routes_test.go93 admin := createTestUser(db, "admin@example.com", auth.RoleAdmin, auth.ProviderGitHub)CODE
LOWcore/http/auth/middleware_test.go214 user = createTestUser(db, "user@example.com", auth.RoleUser, auth.ProviderGitHub)CODE
LOWcore/http/auth/middleware_test.go484 admin := createTestUser(db, "admin@example.com", auth.RoleAdmin, auth.ProviderGitHub)CODE
LOWcore/http/auth/middleware_test.go493 user := createTestUser(db, "user@example.com", auth.RoleUser, auth.ProviderGitHub)CODE
LOWcore/http/auth/middleware_test.go509 admin := createTestUser(db, "admin@example.com", auth.RoleAdmin, auth.ProviderGitHub)CODE
LOWcore/http/auth/middleware_test.go518 user := createTestUser(db, "user@example.com", auth.RoleUser, auth.ProviderGitHub)CODE
LOWcore/http/auth/middleware_test.go527 user := createTestUser(db, "user@example.com", auth.RoleUser, auth.ProviderGitHub)CODE
LOWcore/http/auth/roles_test.go35 role := auth.AssignRole(db, "admin@example.com", "admin@example.com")CODE
LOWcore/http/auth/roles_test.go42 role := auth.AssignRole(db, "Admin@Example.COM", "admin@example.com")CODE
LOWcore/http/auth/roles_test.go49 role := auth.AssignRole(db, "other@example.com", "admin@example.com")CODE
LOWcore/http/auth/roles_test.go69 user := createTestUser(db, "user@example.com", auth.RoleUser, auth.ProviderGitHub)CODE
LOWcore/http/auth/roles_test.go71 promoted := auth.MaybePromote(db, user, "admin@example.com")CODE
LOWcore/http/auth/roles_test.go77 user := createTestUser(db, "admin@example.com", auth.RoleAdmin, auth.ProviderGitHub)CODE
LOWcore/http/auth/oauth_email_decision_test.go13 Expect(emailForRoleDecision("admin@example.com", true)).CODE
LOWcore/http/auth/oauth_email_decision_test.go14 To(Equal("admin@example.com"))CODE
LOWcore/http/auth/oauth_email_decision_test.go18 Expect(emailForRoleDecision("admin@example.com", false)).CODE
LOWcore/http/auth/oauth_email_decision_test.go46 role := AssignRole(db, emailForRoleDecision("admin@example.com", false), "admin@example.com")CODE
LOWcore/http/auth/oauth_email_decision_test.go52 role := AssignRole(db, emailForRoleDecision("admin@example.com", true), "admin@example.com")CODE
LOWcore/http/react-ui/public/locales/it/chat.json91 "placeholder": "Messaggio...",CODE
LOWcore/http/react-ui/public/locales/it/models.json104 "placeholder": "Cerca modelli...",CODE
LOWcore/http/react-ui/public/locales/it/agents.json23 "placeholder": "Cerca agenti...",CODE
LOWcore/http/react-ui/public/locales/it/home.json31 "placeholder": "Messaggio...",CODE
LOWcore/http/react-ui/public/locales/it/skills.json25 "placeholder": "Cerca competenze..."CODE
LOWcore/http/react-ui/public/locales/zh-CN/chat.json91 "placeholder": "消息...",CODE
LOWcore/http/react-ui/public/locales/zh-CN/models.json104 "placeholder": "搜索模型...",CODE
LOWcore/http/react-ui/public/locales/zh-CN/agents.json23 "placeholder": "搜索智能体...",CODE
LOWcore/http/react-ui/public/locales/zh-CN/home.json31 "placeholder": "消息...",CODE
LOWcore/http/react-ui/public/locales/zh-CN/skills.json25 "placeholder": "搜索技能..."CODE
LOWcore/http/react-ui/public/locales/pt-BR/chat.json92 "placeholder": "Mensagem...",CODE
LOW…re/http/react-ui/public/locales/pt-BR/modelEditor.json29 "placeholder": "meu-nome-de-modelo",CODE
LOWcore/http/react-ui/public/locales/pt-BR/models.json114 "placeholder": "Buscar modelos...",CODE
LOWcore/http/react-ui/public/locales/pt-BR/agents.json23 "placeholder": "Buscar agentes...",CODE
LOWcore/http/react-ui/public/locales/pt-BR/media.json200 "placeholder": "Buscar vozes, idiomas ou transcrições"CODE
LOWcore/http/react-ui/public/locales/pt-BR/home.json31 "placeholder": "Mensagem...",CODE
LOWcore/http/react-ui/public/locales/pt-BR/skills.json25 "placeholder": "Buscar habilidades..."CODE
LOWcore/http/react-ui/public/locales/de/chat.json91 "placeholder": "Nachricht...",CODE
LOWcore/http/react-ui/public/locales/de/models.json104 "placeholder": "Modelle suchen...",CODE
LOWcore/http/react-ui/public/locales/de/agents.json23 "placeholder": "Agenten suchen...",CODE
LOWcore/http/react-ui/public/locales/de/home.json31 "placeholder": "Nachricht...",CODE
LOWcore/http/react-ui/public/locales/de/skills.json25 "placeholder": "Fähigkeiten suchen..."CODE
LOWcore/http/react-ui/public/locales/ko/chat.json91 "placeholder": "메시지...",CODE
LOWcore/http/react-ui/public/locales/ko/models.json110 "placeholder": "모델 검색...",CODE
LOWcore/http/react-ui/public/locales/ko/agents.json23 "placeholder": "에이전트 검색...",CODE
LOWcore/http/react-ui/public/locales/ko/home.json31 "placeholder": "메시지...",CODE
LOWcore/http/react-ui/public/locales/ko/skills.json25 "placeholder": "스킬 검색..."CODE
LOWcore/http/react-ui/public/locales/id/chat.json91 "placeholder": "Pesan...",CODE
LOWcore/http/react-ui/public/locales/id/modelEditor.json29 "placeholder": "nama-model-saya",CODE
LOWcore/http/react-ui/public/locales/id/models.json111 "placeholder": "Cari model...",CODE
LOWcore/http/react-ui/public/locales/id/agents.json23 "placeholder": "Cari agen...",CODE
LOWcore/http/react-ui/public/locales/id/home.json31 "placeholder": "Pesan...",CODE
LOWcore/http/react-ui/public/locales/id/skills.json25 "placeholder": "Cari skill..."CODE
LOWcore/http/react-ui/public/locales/es/chat.json91 "placeholder": "Mensaje...",CODE
LOWcore/http/react-ui/public/locales/es/models.json104 "placeholder": "Buscar modelos...",CODE
LOWcore/http/react-ui/public/locales/es/agents.json23 "placeholder": "Buscar agentes...",CODE
LOWcore/http/react-ui/public/locales/es/home.json31 "placeholder": "Mensaje...",CODE
LOWcore/http/react-ui/public/locales/es/skills.json25 "placeholder": "Buscar habilidades..."CODE
LOWcore/http/react-ui/public/locales/en/chat.json102 "placeholder": "Message...",CODE
LOWcore/http/react-ui/public/locales/en/modelEditor.json29 "placeholder": "my-model-name",CODE
17 more matches not shown…
Deep Nesting76 hits · 62 pts
SeverityFileLineSnippetContext
LOWtests/test_invariant_backend.py15CODE
LOWbackend/python/liquid-audio/backend.py119CODE
LOWbackend/python/liquid-audio/backend.py240CODE
LOWbackend/python/liquid-audio/backend.py381CODE
LOWbackend/python/liquid-audio/backend.py517CODE
LOWbackend/python/pocket-tts/backend.py54CODE
LOWbackend/python/pocket-tts/backend.py154CODE
LOWbackend/python/ace-step/backend.py82CODE
LOWbackend/python/ace-step/backend.py102CODE
LOWbackend/python/ace-step/backend.py308CODE
LOWbackend/python/vibevoice/backend.py56CODE
LOWbackend/python/vibevoice/backend.py475CODE
LOWbackend/python/vibevoice/backend.py584CODE
LOWbackend/python/nemo/backend.py48CODE
LOWbackend/python/nemo/backend.py227CODE
LOWbackend/python/diffusers/backend.py171CODE
LOWbackend/python/diffusers/backend.py509CODE
LOWbackend/python/diffusers/backend.py673CODE
LOWbackend/python/diffusers/backend.py914CODE
LOWbackend/python/diffusers/diffusers_dynamic_loader.py124CODE
LOWbackend/python/diffusers/diffusers_dynamic_loader.py313CODE
LOWbackend/python/mlx-audio/backend.py67CODE
LOWbackend/python/mlx-audio/backend.py303CODE
LOWbackend/python/mlx-audio/backend.py382CODE
LOWbackend/python/llama-cpp-quantization/backend.py362CODE
LOWbackend/python/chatterbox/backend.py135CODE
LOWbackend/python/chatterbox/backend.py196CODE
LOWbackend/python/vllm/backend.py149CODE
LOWbackend/python/vllm/backend.py394CODE
LOWbackend/python/vllm/backend.py526CODE
LOWbackend/python/speaker-recognition/engines.py117CODE
LOWbackend/python/common/model_identity.py226CODE
LOWbackend/python/common/python_utils.py10CODE
LOWbackend/python/common/python_utils.py40CODE
LOWbackend/python/transformers/backend.py64CODE
LOWbackend/python/transformers/backend.py491CODE
LOWbackend/python/transformers/backend.py557CODE
LOWbackend/python/vllm-omni/backend.py74CODE
LOWbackend/python/vllm-omni/backend.py355CODE
LOWbackend/python/vllm-omni/backend.py479CODE
LOWbackend/python/vllm-omni/backend.py663CODE
LOWbackend/python/mlx-distributed/backend.py619CODE
LOWbackend/python/mlx-distributed/backend.py399CODE
LOWbackend/python/mlx-distributed/mlx_cache.py76CODE
LOWbackend/python/mlx-distributed/mlx_cache.py169CODE
LOWbackend/python/neutts/backend.py50CODE
LOWbackend/python/mlx-vlm/backend.py58CODE
LOWbackend/python/mlx-vlm/backend.py262CODE
LOWbackend/python/trl/backend.py248CODE
LOWbackend/python/trl/backend.py644CODE
LOWbackend/python/trl/backend.py691CODE
LOWbackend/python/trl/reward_functions.py196CODE
LOWbackend/python/sglang/backend.py139CODE
LOWbackend/python/sglang/backend.py403CODE
LOWbackend/python/qwen-asr/backend.py97CODE
LOWbackend/python/qwen-asr/backend.py212CODE
LOWbackend/python/qwen-tts/backend.py86CODE
LOWbackend/python/qwen-tts/backend.py482CODE
LOWbackend/python/qwen-tts/backend.py690CODE
LOWbackend/python/mlx/backend.py252CODE
16 more matches not shown…
Modern AI Meta-Vocabulary19 hits · 53 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md190- **October 2025**: [Model Context Protocol (MCP)](https://localai.io/docs/features/mcp/) support for agentic capabilitiCODE
MEDIUMcore/config/model_config.go267 // agentic/multi-turn workloads that re-send a large stable prefix.COMMENT
MEDIUMcore/http/endpoints/openai/realtime.go2139// maxAssistantToolTurns caps the server-side agentic loop. Mirrors theCOMMENT
MEDIUMcore/http/endpoints/openai/realtime.go2156// the whole agentic tool-turn recursion: a single id, the output items as theyCOMMENT
MEDIUMcore/http/endpoints/openai/realtime.go2597 // triggerResponse; every turn (including agentic recursion) shares this id.COMMENT
MEDIUMcore/http/endpoints/openai/realtime.go2886 // whole turn (including the agentic recursion below) completes.COMMENT
MEDIUMcore/http/endpoints/openai/realtime.go2889 // so the model can speak the result. Mirrors the chat-side agentic loopCOMMENT
MEDIUMcore/http/endpoints/openai/inference_test.go411 // Truncation labeling for agentic clients (cogito): a reasoning modelCOMMENT
MEDIUMcore/http/react-ui/src/hooks/useChat.js555 // Regular SSE streaming with client-side agentic loop supportCOMMENT
MEDIUMcore/http/react-ui/src/hooks/useChat.js572 let fullToolCalls = [] // Tool calls with id for agentic loopCODE
MEDIUMcore/http/react-ui/src/hooks/useChat.js727 // Client-side agentic loop: check for client tool callsCOMMENT
MEDIUMcore/http/react-ui/src/pages/Talk.jsx211 // Mirrors the chat-page agentic loop: collect args from the model'sCOMMENT
MEDIUMcore/services/agentpool/agent_pool.go62// to provide agentic capabilities integrated directly into LocalAI.COMMENT
MEDIUMwebsite/content/blog/localai-since-march-2023.md41[LocalAI 4.0.0](https://github.com/mudler/LocalAI/releases/tag/v4.0.0) added native agentic orchestration with the [AgenCODE
MEDIUMtests/e2e-aio/models/embeddings.yaml7# sized up to the context window (core/backend/options.go EffectiveBatchSize) soCOMMENT
MEDIUMbackend/go/cloud-proxy/provider_anthropic.go66// calls that share it — the win on agentic/multi-turn workloads.COMMENT
MEDIUMbackend/go/cloud-proxy/provider_anthropic.go239 // cache-read rate on the next agentic iteration (max 4 breakpoints; weCOMMENT
MEDIUMbackend/python/tinygrad/backend.py629 # Clamp to context window — truncate long inputs rather than blow up.COMMENT
MEDIUMdocs/content/operations/middleware.md691 embedding_model: nomic-embed-text-v1.5 # any loaded embedding modelCODE
Unused Imports60 hits · 52 pts
SeverityFileLineSnippetContext
LOWbackend/python/vibevoice/backend.py13CODE
LOWbackend/python/kitten-tts/backend.py14CODE
LOWbackend/python/tinygrad/backend.py28CODE
LOWbackend/python/tinygrad/backend.py52CODE
LOWbackend/python/tinygrad/tool_parsers/mistral.py11CODE
LOWbackend/python/tinygrad/tool_parsers/__init__.py7CODE
LOWbackend/python/tinygrad/tool_parsers/__init__.py9CODE
LOWbackend/python/tinygrad/tool_parsers/__init__.py9CODE
LOWbackend/python/tinygrad/tool_parsers/__init__.py9CODE
LOWbackend/python/tinygrad/tool_parsers/hermes.py17CODE
LOWbackend/python/tinygrad/tool_parsers/llama3_json.py15CODE
LOWbackend/python/tinygrad/tool_parsers/llama3_json.py19CODE
LOWbackend/python/tinygrad/tool_parsers/qwen3_xml.py21CODE
LOWbackend/python/tinygrad/tool_parsers/base.py2CODE
LOWbackend/python/tinygrad/tool_parsers/base.py4CODE
LOWbackend/python/tinygrad/tool_parsers/base.py73CODE
LOWbackend/python/tinygrad/tool_parsers/base.py73CODE
LOWbackend/python/tinygrad/tool_parsers/base.py73CODE
LOWbackend/python/tinygrad/tool_parsers/base.py73CODE
LOWbackend/python/diffusers/backend.py32CODE
LOWbackend/python/diffusers/backend.py32CODE
LOWbackend/python/diffusers/backend.py40CODE
LOWbackend/python/diffusers/test.py7CODE
LOWbackend/python/diffusers/diffusers_dynamic_loader.py33CODE
LOWbackend/python/mlx-audio/backend.py8CODE
LOWbackend/python/mlx-audio/backend.py9CODE
LOWbackend/python/mlx-audio/backend.py10CODE
LOWbackend/python/mlx-audio/backend.py11CODE
LOWbackend/python/mlx-audio/backend.py12CODE
LOWbackend/python/vllm/backend.py14CODE
LOWbackend/python/vllm/backend.py35CODE
LOWbackend/python/speaker-recognition/backend.py9CODE
LOWbackend/python/speaker-recognition/engines.py20CODE
LOWbackend/python/speaker-recognition/test.py10CODE
LOWbackend/python/common/vllm_utils.py12CODE
LOWbackend/python/common/vllm_utils.py12CODE
LOWbackend/python/common/template/backend.py2CODE
LOWbackend/python/common/template/backend.py3CODE
LOWbackend/python/common/template/backend.py4CODE
LOWbackend/python/transformers/backend.py14CODE
LOWbackend/python/mlx-distributed/coordinator.py7CODE
LOWbackend/python/mlx-distributed/coordinator.py8CODE
LOWbackend/python/mlx-distributed/backend.py23CODE
LOWbackend/python/mlx-vlm/backend.py11CODE
LOWbackend/python/trl/backend.py251CODE
LOWbackend/python/sglang/backend.py30CODE
LOWbackend/python/sglang/backend.py31CODE
LOWbackend/python/sglang/backend.py32CODE
LOWbackend/python/sglang/backend.py34CODE
LOWbackend/python/qwen-tts/backend.py12CODE
LOWbackend/python/qwen-tts/backend.py14CODE
LOWbackend/python/qwen-tts/test.py10CODE
LOWbackend/python/rfdetr/backend.py21CODE
LOWbackend/python/rfdetr/backend.py23CODE
LOWbackend/python/insightface/backend.py15CODE
LOWbackend/python/insightface/engines.py19CODE
LOWbackend/python/insightface/test.py10CODE
LOWbackend/python/insightface/smoke.py17CODE
LOWbackend/python/mlx/test_mlx_cache.py17CODE
LOWbackend/python/faster-qwen3-tts/test.py8CODE
Structural Annotation Overuse26 hits · 46 pts
SeverityFileLineSnippetContext
LOWcore/gallery/upgrade.go296 // Step 1: Download the new backend into the tmp directoryCOMMENT
LOWcore/gallery/upgrade.go314 // Step 2: Validate — check that run.sh exists in the new contentCOMMENT
LOWcore/gallery/upgrade.go321 // Step 3: Atomic swap — rename current to backup, then tmp to currentCOMMENT
LOWcore/gallery/upgrade.go337 // Step 4: Write updated metadata, preserving alias from old metadataCOMMENT
LOWcore/gallery/upgrade.go370 // Step 5: Re-register backends so the model loader picks up any changesCOMMENT
LOWcore/gallery/upgrade.go375 // Step 6: Remove backupCOMMENT
LOWcore/services/nodes/router_test.go978 // Step 1: cached model found on old nodeCOMMENT
LOWcore/services/nodes/router.go663 // Step 1: Find and atomically lock a node with this model loadedCOMMENT
LOWcore/services/nodes/router.go668 // Step 2: model not loaded — it has to be cold-loaded.COMMENT
LOWtests/e2e/mock_backend_test.go445 // Step 1: tokenizeCOMMENT
LOWtests/e2e/mock_backend_test.go465 // Step 2: detokenize the returned token IDsCOMMENT
LOW.agents/api-endpoints-and-auth.md19### Step 1: Create the handlerCOMMENT
LOW.agents/api-endpoints-and-auth.md36### Step 2: Register routesCOMMENT
LOW.agents/api-endpoints-and-auth.md48### Step 3: Apply the right middlewareCOMMENT
LOWbackend/python/llama-cpp-quantization/backend.py101 # Step 1: Download / resolve modelCOMMENT
LOWbackend/python/llama-cpp-quantization/backend.py112 # Step 2: Convert to f16 GGUFCOMMENT
LOWbackend/python/llama-cpp-quantization/backend.py123 # Step 3: QuantizeCOMMENT
LOWbackend/python/trl/backend.py749 # Step 1: Merge LoRA into base modelCOMMENT
LOWbackend/python/trl/backend.py798 # Step 2: Convert to GGUF using convert_hf_to_gguf.pyCOMMENT
LOWdocs/content/getting-started/models.md185### Step 1: Download a ModelCOMMENT
LOWdocs/content/getting-started/models.md200### Step 2: Create a Configuration File (Optional)COMMENT
LOWdocs/content/getting-started/models.md217### Step 3: Run LocalAICOMMENT
LOWpkg/functions/parse_test.go191 // Step 1: Replace single quotes around keys and values with double quotesCOMMENT
LOWpkg/functions/parse_test.go193 // Step 2: Replace double quotes inside values with placeholdersCOMMENT
LOWpkg/functions/parse_test.go224 // Step 1: Replace single quotes around keys and values with double quotesCOMMENT
LOWpkg/functions/parse_test.go226 // Step 2: Replace double quotes inside values with placeholdersCOMMENT
Redundant / Tautological Comments27 hits · 43 pts
SeverityFileLineSnippetContext
LOWbackend/python/vibevoice/backend.py104 # Check if ASR mode is enabledCOMMENT
LOWbackend/python/vibevoice/backend.py194 # Check if the directory existsCOMMENT
LOWbackend/python/vibevoice/test.py15# Check if we should skip ASR tests (they require large models ~14B parameters total)COMMENT
LOWbackend/python/vibevoice/test.py188 # Check if segments is iterable (has length)COMMENT
LOWbackend/python/diffusers/backend.py357 # Check if loading from single file (GGUF)COMMENT
LOWbackend/python/diffusers/backend.py411 # Check if loading from single file (GGUF)COMMENT
LOWbackend/python/diffusers/backend.py638 # Check if its a local file and not a directory ( we load lora differently for a safetensor file )COMMENT
LOWbackend/python/diffusers/diffusers_dynamic_loader.py485 # Check if the class has from_single_file methodCOMMENT
LOWbackend/python/mlx-audio/backend.py264 # Check if model supports language codes (primarily Kokoro)COMMENT
LOWbackend/python/mlx-audio/backend.py133 # Check if model is loadedCOMMENT
LOWbackend/python/mlx-audio/backend.py156 # Check if model supports language codes (primarily Kokoro)COMMENT
LOWbackend/python/mlx-audio/backend.py235 # Check if model is loadedCOMMENT
LOWbackend/python/llama-cpp-quantization/backend.py377 # Check if the thread is still aliveCOMMENT
LOWbackend/python/llama-cpp-quantization/backend.py384 # Check if client disconnectedCOMMENT
LOWbackend/python/chatterbox/backend.py67 # Check if adding this word would exceed the limitCOMMENT
LOWbackend/python/chatterbox/backend.py220 # Check if text exceeds 250 charactersCOMMENT
LOWbackend/python/vllm/backend.py334 # Check if we have one result at leastCOMMENT
LOWbackend/python/moonshine/test.py111 # Check if segments is iterable (has length)COMMENT
LOWbackend/python/qwen-tts/backend.py476 # Check if it looks like a file path (contains / or \ and ends with common text file extensions)COMMENT
LOWbackend/python/qwen-tts/backend.py287 # Check if it's a missing feature extractor/tokenizer errorCOMMENT
LOWbackend/python/qwen-tts/backend.py506 # Check if file exists and is readableCOMMENT
LOWbackend/python/qwen-tts/backend.py692 # Check if dst is providedCOMMENT
LOWbackend/python/qwen-tts/backend.py753 # Check if multi-voice mode is active (voices dict is populated)COMMENT
LOWbackend/python/qwen-tts/backend.py821 # Check if we should use cached promptCOMMENT
LOWbackend/python/fish-speech/test.py95 # Check if process diedCOMMENT
LOW.github/check_and_update.py32 # Check if 'hasUnsafeFile' exists in the responseCOMMENT
LOW.github/check_and_update.py48 # Check if the repo is flagged as dangerous by HFCOMMENT
AI Slop Vocabulary15 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMcore/gallery/importers/bark.go25// DiscoverModelConfig leaves HuggingFace nil. To keep detection robust,COMMENT
MEDIUMcore/http/react-ui/src/pages/AgentChat.jsx116 // Maps backend messageID → conversationId for robust SSE routing across navigations.COMMENT
MEDIUMtests/e2e/distributed/prefix_cache_routing_test.go182 // provider decision directly is the robust check.COMMENT
LOWbackend/python/llama-cpp-quantization/backend.py203 # If the model_path is already a GGUF file, just use it as-isCOMMENT
MEDIUMbackend/python/speaker-recognition/engines.py71 # checkpoint (Audeering wav2vec2-large-robust-24-ft-age-gender) uses aCOMMENT
MEDIUMbackend/cpp/privacy-filter/package.sh17# grpc++/protobuf/absl stack) by walking ldd — robust to whichever of those areCOMMENT
MEDIUMbackend/cpp/ds4/dsml_parser.cpp333 // Definitely a literal '<' now (no chance of more bytes arriving).COMMENT
MEDIUM.github/workflows/test-extra.yml603 # harness.COMMENT
MEDIUM.github/workflows/test-extra.yml621 # End-to-end transcription via the e2e-backends gRPC harness againstCOMMENT
MEDIUM.github/workflows/test-extra.yml663 # TTSStream (PCM chunks) on the e2e-backends harness.COMMENT
MEDIUM.github/workflows/test-extra.yml1102 # End-to-end TTS via the e2e-backends gRPC harness. Builds theCOMMENT
MEDIUM.github/workflows/test-extra.yml1122 # End-to-end transcription via the e2e-backends gRPC harness. TheCOMMENT
MEDIUM.github/workflows/test-extra.yml1161 # End-to-end audio transform via the e2e-backends gRPC harness. TheCOMMENT
MEDIUM.github/workflows/tests-pii-ner-e2e.yml9# This drives the container-level harness (tests/e2e-backends) viaCOMMENT
MEDIUM.github/gallery-agent/testing.go220 fmt.Sprintf("# %s Language Model\n\nDeveloped by %s, this model represents state-of-the-art performance in natural lanCODE
Verbosity Indicators21 hits · 39 pts
SeverityFileLineSnippetContext
LOWcore/gallery/upgrade.go296 // Step 1: Download the new backend into the tmp directoryCOMMENT
LOWcore/gallery/upgrade.go314 // Step 2: Validate — check that run.sh exists in the new contentCOMMENT
LOWcore/gallery/upgrade.go321 // Step 3: Atomic swap — rename current to backup, then tmp to currentCOMMENT
LOWcore/gallery/upgrade.go337 // Step 4: Write updated metadata, preserving alias from old metadataCOMMENT
LOWcore/gallery/upgrade.go370 // Step 5: Re-register backends so the model loader picks up any changesCOMMENT
LOWcore/gallery/upgrade.go375 // Step 6: Remove backupCOMMENT
LOWcore/gallery/backends.go507 // if doesn't exist, it might be an alias, so we need to check if we have a matching alias inCOMMENT
LOWcore/services/nodes/router_test.go978 // Step 1: cached model found on old nodeCOMMENT
LOWcore/services/nodes/router.go663 // Step 1: Find and atomically lock a node with this model loadedCOMMENT
LOWcore/services/nodes/router.go668 // Step 2: model not loaded — it has to be cold-loaded.COMMENT
LOWtests/e2e/mock_backend_test.go445 // Step 1: tokenizeCOMMENT
LOWtests/e2e/mock_backend_test.go465 // Step 2: detokenize the returned token IDsCOMMENT
LOWbackend/python/llama-cpp-quantization/backend.py101 # Step 1: Download / resolve modelCOMMENT
LOWbackend/python/llama-cpp-quantization/backend.py112 # Step 2: Convert to f16 GGUFCOMMENT
LOWbackend/python/llama-cpp-quantization/backend.py123 # Step 3: QuantizeCOMMENT
LOWbackend/python/trl/backend.py749 # Step 1: Merge LoRA into base modelCOMMENT
LOWbackend/python/trl/backend.py798 # Step 2: Convert to GGUF using convert_hf_to_gguf.pyCOMMENT
LOWpkg/functions/parse_test.go191 // Step 1: Replace single quotes around keys and values with double quotesCOMMENT
LOWpkg/functions/parse_test.go193 // Step 2: Replace double quotes inside values with placeholdersCOMMENT
LOWpkg/functions/parse_test.go224 // Step 1: Replace single quotes around keys and values with double quotesCOMMENT
LOWpkg/functions/parse_test.go226 // Step 2: Replace double quotes inside values with placeholdersCOMMENT
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALcore/http/static/assets/marked.js6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?defCODE
CRITICALcore/http/static/assets/codemirror.min.js1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&defineCODE
CRITICALbackend/cpp/llama-cpp/grpc-server.cpp1623 if (params.speculative.has_dft() && !params.speculative.draft.mparams.path.empty()) {CODE
Magic Placeholder Names6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHcore/http/views/agent-task-details.html373 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHcore/http/views/agent-task-details.html394 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHcore/http/views/agent-task-details.html417 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHcore/http/views/agent-task-details.html443 -H "Authorization: Bearer YOUR_API_KEY"</code></pre>CODE
HIGHdocs/content/features/mcp.md444 api_key="your-api-key"CODE
HIGHdocs/content/getting-started/troubleshooting.md275 -H "Authorization: Bearer YOUR_API_KEY"CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHbackend/python/diffusers/diffusers_dynamic_loader.py128 Discover all subclasses of a given base class from diffusers. This function provides a generic way to discoverSTRING
HIGHbackend/python/diffusers/diffusers_dynamic_loader.py318 Resolve a pipeline class from class_name, task, or model_id. Priority: 1. If class_name is provided, look STRING
HIGHbackend/python/diffusers/diffusers_dynamic_loader.py428 Load a diffusers pipeline dynamically. This function resolves the appropriate pipeline class based on the provSTRING
Dead Code5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMbackend/python/mlx-distributed/backend.py604CODE
MEDIUMbackend/python/mlx-distributed/backend.py605CODE
MEDIUMbackend/python/mlx-distributed/backend.py609CODE
MEDIUMbackend/python/mlx-distributed/backend.py614CODE
MEDIUMbackend/python/mlx-distributed/backend.py616CODE
Example Usage Blocks4 hits · 5 pts
SeverityFileLineSnippetContext
LOWdocker-compose.distributed.yaml9# Usage:COMMENT
LOWscripts/install-fizzbee.sh7# Usage:COMMENT
LOWscripts/model_gallery_info.py53# Example usageSTRING
LOWpkg/model/watchdog.go79// Example usage:COMMENT
AI Response Leakage1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/content/reference/architecture.md17As much as typical open source projects starts, I, [mudler](https://github.com/mudler/), was fiddling around with [llamaCODE
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMpkg/huggingface-api/client_test.go693 mockReadmeContent := "# Test Model\n\nThis is a test model for demonstration purposes."CODE
MEDIUMpkg/huggingface-api/client_test.go712 Expect(content).To(Equal("# Test Model\n\nThis is a test model for demonstration purposes."))CODE
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHbackend/python/common/vllm_utils_test.py4 cd backend/python/common && python3 -m unittest vllm_utils_testSTRING
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWbackend/python/tinygrad/tool_parsers/__init__.py11__all__ = ["ToolCall", "ToolParser", "resolve_parser"]CODE
LOWbackend/python/common/vllm_utils.py14__all__ = [CODE
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWbackend/python/vllm/backend.py319CODE
LOWbackend/python/transformers/backend.py481CODE
LOWbackend/python/sglang/backend.py254CODE