mirror of
https://github.com/mudler/LocalAI.git
synced 2026-07-31 02:18:50 -04:00
* feat(ced): sketch sound-classification backend (CED audio tagger) Wires ced.cpp (CED, 527-class AudioSet sound-event tagger; baby cry, footsteps, glass, alarms, dog bark) into LocalAI as a Go/purego backend. SKETCH (backend skeleton real; core REST wiring + CI/gallery is a checklist in DESIGN.md): - backend/backend.proto: new SoundDetection rpc + SoundClass messages (run `make protogen-go` to regenerate pkg/grpc/proto). - backend/go/ced: main.go (purego dlopen libced.so + ced_capi.h), goced.go (Ced gRPC backend: Load + SoundDetection), Makefile (clone-at-pin CED_VERSION, ggml static-PIC shared build), run.sh, package.sh, .gitignore. - DESIGN.md: REST /v1/audio/classification wiring (handler/route/capability registration checklist), gallery/index + CI registration, and a scoping note for the realtime/websocket live-recognition path (sliding-window classify over the existing ws transport + voicegate; the ced C-API per-PCM entry point is already window-friendly). Backend code does not compile until protogen-go regenerates the pb types and a libced.so is built (Makefile clones+builds it). Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * feat(ced): REST /v1/audio/classification endpoint + capability registration Wires the ced sound-event classification backend (AudioSet audio tagger) end to end through the REST surface, mirroring the transcription path. - Handler: core/http/endpoints/openai/sound_classification.go parses the multipart audio upload, temp-files it, resolves the model config and calls the SoundDetection RPC; returns {model, detections[]} JSON. - Backend wrapper: core/backend/sound_classification.go (ModelSoundDetection) loads the model and normalizes the proto response into schema types. - Schema: core/schema/sound_classification.go (SoundClassificationResult). - gRPC layer: SoundDetection wired through the LocalAI wrapper (interface, Backend client, Client, embed, server, base default) so the loader-typed client exposes the RPC; proto regenerated via make protogen-go. - Route: POST /v1/audio/classification (+ /audio/classification alias) with the audio/multipart default-model middleware in routes/openai.go. - Capability surfaces: swagger @Tags/@Router on the handler; FLAG_SOUND_ CLASSIFICATION usecase flag + UsecaseSoundClassification + UsecaseInfoMap + GuessUsecases + ModalityGroups + GetAllModelConfigUsecases; meta usecase option; /api/instructions audio area updated; auth RouteFeatureRegistry + FeatureAudioClassification (APIFeatures, default ON) + FeatureMetas; UI usecaseFilters, capabilities.js CAP_SOUND_CLASSIFICATION, Models.jsx filter + i18n; docs page features/audio-classification.md + whats-new + crosslink. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * feat(ced): realtime sound-event detection over the websocket API When a realtime pipeline configures a sound-classification model, each VAD-committed utterance (the same window the transcription path produces) is also run through the CED sound-event classifier and the scored AudioSet tags are emitted as a new server event. No new backend rpc is needed: the SoundDetection gRPC method already exists on this branch. - config: add Pipeline.SoundDetection (yaml/json sound_detection,omitempty) beside Transcription/VAD. - realtime: add Model.SoundDetection(ctx, audio, topK, threshold) to the ModelInterface; implement it on wrappedModel and transcriptOnlyModel by calling backend.ModelSoundDetection with the session's sound-classification model config (mirrors how Transcribe dispatches). Load the optional config in newModel / newTranscriptionOnlyModel; nil config keeps it additive. - types: add ConversationItemSoundDetectionEvent (item_id, content_index, detections[]{label,score,index}) with type conversation.item.sound_detection, its ServerEventType constant and MarshalJSON, mirroring the transcription completed event. - realtime: add emitSoundDetection (unary path: classify the committed window, build the event, t.SendEvent) and wire it at the utterance-commit hook right after emitTranscription; gated on session.SoundDetectionEnabled (resolved from Pipeline.SoundDetection at session setup, defaults top_k=5, threshold=0). Its error is logged via xlog but never aborts the turn. - test: Ginkgo specs for emitSoundDetection (tags emitted, empty detections, classifier error) plus a SoundDetection method on the fakeModel double. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * fix(ced): implement SoundDetection in nodes backend test doubles The SoundDetection method added to the grpc backend interface left two test doubles (fakeBackendClient, fakeGRPCBackend) incomplete, so core/services/nodes failed to compile under `go vet`/`go test` (go build missed it: the doubles live in _test.go). Add the method to both, mirroring their existing Detect mock. Repairs CI for the nodes package. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * feat(ced): decouple realtime sound detection from VAD (sound-only sessions) Sound-event detection must activate on sounds, not speech, so it no longer runs through the voice VAD/transcription path. A sound-detection-only pipeline (sound_detection set, no transcription/LLM) now: - is accepted by prepareRealtimeConfig (sound_detection counts as a pipeline stage), - builds a lightweight model via newSoundDetectionOnlyModel (no VAD/STT/LLM/TTS loaded), and - defaults the session to turn_detection none (no VAD) with no transcription stage, so the client drives windowing via input_audio_buffer.commit (option A: client-side sliding window). The per-PCM C-API already supports arbitrary windows. commitUtterance gains a sound-only branch: it emits the conversation.item.sound_detection event (scored AudioSet tags) and stops - no transcription, no LLM response. generateResponse is now guarded on a transcription stage being present, so a sound-only turn never invokes the LLM. Existing transcription/VAD sessions are unchanged (additive). Added a commitUtterance sound-only Ginkgo spec asserting it emits the sound event and neither transcribes nor generates a response. go vet + golangci-lint (new-from-merge-base) clean; openai suite green. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * feat(ced): register sound-classification backend in gallery + CI Mechanical backend-image registration for the ced sound-event classifier, mirroring the parakeet-cpp Go/purego backend everywhere it is wired up. - .github/backend-matrix.yml: add the ced build matrix, field-for-field copies of the parakeet-cpp entries (cpu amd64/arm64, cublas cuda 12/13 amd64, l4t cuda-13 arm64, l4t-jetpack cuda-12 arm64, sycl f32/f16, vulkan amd64/arm64, rocm hipblas, and the metal darwin entry), changing only backend and tag-suffix. dockerfile stays ./backend/Dockerfile.golang. - backend/index.yaml: add the &ced meta anchor (capabilities map per platform) plus ced-development and the per-arch image entries, each uri/mirror tag-suffix matching the matrix exactly. The model gallery (GGUF) entry is intentionally deferred pending the HuggingFace publish (TODO note inline). - scripts/changed-backends.js: add an explicit item.backend === "ced" branch in inferBackendPath mapping to backend/go/ced/, same mechanism and ordering as the parakeet-cpp branch (before the generic golang fallthrough). - .github/workflows/bump_deps.yaml: register mudler/ced.cpp -> CED_VERSION in backend/go/ced/Makefile so the daily bot bumps the pin. - swagger/{docs.go,swagger.json,swagger.yaml}: regenerated via make swagger so the existing /v1/audio/classification annotations land in the generated spec. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * feat(ced): server-side windowing for realtime sound detection (option B) Adds an optional server-driven sliding-window classifier so a sound-only realtime client only has to stream audio (no input_audio_buffer.commit): - Pipeline.sound_detection_window_ms / sound_detection_hop_ms config knobs. When both > 0 on a sound-only session, the server classifies the last window of streamed audio every hop and emits a conversation.item.sound_ detection event; the input buffer is trimmed to one window so a long stream stays bounded. When unset, the session stays client-driven (option A). Runs independent of VAD (sound events are not speech). - handleSoundWindow (ticker) + classifySoundWindow (one tick, extracted so it is unit-testable) + writeWindowWAV, which declares the true InputSampleRate (NewWAVHeaderWithRate) so the classifier resamples correctly. Goroutine is started after toggleVAD and torn down with the session (close + wg.Wait). - Register pipeline.sound_detection (+window_ms/hop_ms) in the config meta registry; the earlier realtime commit added pipeline.sound_detection without a registry entry, failing TestAllFieldsHaveRegistryEntries. This fixes that and covers the two new knobs. Tests: classifySoundWindow emits an event + trims the buffer to one window, no-ops on too-little audio; writeWindowWAV declares the given sample rate. go build/vet + golangci-lint (new-from-merge-base) clean; config + openai suites green. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * feat(ced): add ced-base GGUF model gallery entries (f16 + q8_0) The ced-base weights are now published at mudler/ced-base-gguf (Apache-2.0, converted from mispeech/ced-base). Adds gallery/ced.yaml (backend: ced + known_usecases: sound_classification) and two gallery/index.yaml entries (ced-base-f16 default, ced-base-q8 smallest) with sha256-pinned files, and removes the now-resolved TODO from backend/index.yaml. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * feat(ced): add tiny/mini/small GGUF model gallery entries Publishes the rest of the CED family (same architecture, metadata-driven port verified end-to-end on ced-tiny) to mudler/ced-{tiny,mini,small}-gguf and adds their f16 + q8_0 gallery entries: ced-tiny (5.5M, edge/Pi-class) f16 11MB / q8_0 6MB ced-mini (9.6M) f16 19MB / q8_0 11MB ced-small (22M) f16 42MB / q8_0 23MB All sha256-pinned. ced-base remains the accuracy default. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(ced): point gallery entries at the consolidated mudler/ced-gguf repo All CED quantizations (tiny/mini/small/base, f16/q8_0) now live in a single HuggingFace repo, mudler/ced-gguf, instead of per-model repos. Repoint the 8 gallery model entries' urls + file uris accordingly. sha256 and filenames are unchanged. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(ced): bump CED_VERSION to the short-clip fix Pin the ced backend to ced.cpp 99c6ed3, which fixes a crash on any clip shorter than target_length (~10.11s): time_pos_embed was added at its full 63-frame grid instead of being sliced to the clip's actual time grid, tripping ggml_can_repeat in ggml_add. Surfaced by the live realtime e2e (sub-10s windows) and gated with a short-clip parity test upstream. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * docs(ced): list ced.cpp as a LocalAI-team engine + backend-guide directive - README.md: add ced.cpp to the "native C/C++/GGML engines developed and maintained by the LocalAI project" table. - docs/content/features/backends.md: add a Sound Classification backend category (sound-event classification / audio tagging) listing ced.cpp. - .agents/adding-backends.md: add a "Documenting the backend" section and two verification-checklist items requiring new backends to be documented in the backends.md category list, and in-house native engines to be added to the README maintained-engines table. This directive was missing. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * chore(ced): repin CED_VERSION to the v0.1.0 release commit ced.cpp history was squashed into a single release commit (tagged v0.1.0), so the previous pin (99c6ed3) no longer exists upstream. Pin to c04ac14, the v0.1.0 release commit, so the backend builds against a commit that exists. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * fix(ced): silence gosec G304/G103 + govet unsafeptr on audited paths - sound_classification.go: os.Create(dst) where dst = temp dir + path.Base of the upload (no traversal). #nosec G304, matching the depth-anything-cpp handler. - goced.go: reading a NUL-terminated C string from a libced-owned buffer. #nosec G103 (gosec) + //nolint:govet (golangci-lint's unsafeptr check), since the uintptr is a C-owned malloc'd buffer, not Go-GC memory. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
846 lines
34 KiB
Go
846 lines
34 KiB
Go
package meta
|
|
|
|
import "github.com/mudler/LocalAI/core/services/routing/piipattern"
|
|
|
|
// builtinPatternOptions turns the piipattern built-in catalogue into select
|
|
// options for the editor's built-in-patterns checklist, keeping the catalogue
|
|
// the single source of truth.
|
|
func builtinPatternOptions() []FieldOption {
|
|
cat := piipattern.BuiltinCatalogue()
|
|
out := make([]FieldOption, 0, len(cat))
|
|
for _, b := range cat {
|
|
out = append(out, FieldOption{Value: b.Name, Label: b.Name + " — " + b.Description})
|
|
}
|
|
return out
|
|
}
|
|
|
|
// DefaultRegistry returns enrichment overrides for the ~30 most commonly used
|
|
// config fields. Fields not listed here still appear with auto-generated
|
|
// labels and type-inferred components.
|
|
func DefaultRegistry() map[string]FieldMetaOverride {
|
|
f64 := func(v float64) *float64 { return &v }
|
|
|
|
return map[string]FieldMetaOverride{
|
|
// --- General ---
|
|
"name": {
|
|
Section: "general",
|
|
Label: "Model Name",
|
|
Description: "Unique identifier for this model configuration",
|
|
Component: "input",
|
|
Order: 0,
|
|
},
|
|
"backend": {
|
|
Section: "general",
|
|
Label: "Backend",
|
|
Description: "The inference backend to use (e.g. llama-cpp, vllm, diffusers)",
|
|
Component: "select",
|
|
AutocompleteProvider: ProviderBackends,
|
|
Order: 1,
|
|
},
|
|
"description": {
|
|
Section: "general",
|
|
Label: "Description",
|
|
Description: "Human-readable description of what this model does",
|
|
Component: "textarea",
|
|
Order: 2,
|
|
},
|
|
"usage": {
|
|
Section: "general",
|
|
Label: "Usage",
|
|
Description: "Usage instructions or notes",
|
|
Component: "textarea",
|
|
Advanced: true,
|
|
Order: 3,
|
|
},
|
|
"cuda": {
|
|
Section: "general",
|
|
Label: "CUDA",
|
|
Description: "Explicitly enable CUDA acceleration",
|
|
Order: 5,
|
|
},
|
|
"known_usecases": {
|
|
Section: "general",
|
|
Label: "Known Use Cases",
|
|
Description: "Capabilities this model supports",
|
|
Component: "string-list",
|
|
Options: UsecaseOptions,
|
|
Order: 6,
|
|
},
|
|
|
|
// --- LLM ---
|
|
"context_size": {
|
|
Section: "llm",
|
|
Label: "Context Size",
|
|
Description: "Maximum context window in tokens",
|
|
Component: "number",
|
|
VRAMImpact: true,
|
|
Order: 10,
|
|
},
|
|
"gpu_layers": {
|
|
Section: "llm",
|
|
Label: "GPU Layers",
|
|
Description: "Number of layers to offload to GPU (-1 = all)",
|
|
Component: "number",
|
|
Min: f64(-1),
|
|
VRAMImpact: true,
|
|
Order: 11,
|
|
},
|
|
"threads": {
|
|
Section: "llm",
|
|
Label: "Threads",
|
|
Description: "Number of CPU threads for inference",
|
|
Component: "number",
|
|
Min: f64(1),
|
|
Order: 12,
|
|
},
|
|
"f16": {
|
|
Section: "llm",
|
|
Label: "F16",
|
|
Description: "Use 16-bit floating point for key/value cache",
|
|
Order: 13,
|
|
},
|
|
"mmap": {
|
|
Section: "llm",
|
|
Label: "Memory Map",
|
|
Description: "Use memory-mapped files for model loading",
|
|
Order: 14,
|
|
},
|
|
"mmlock": {
|
|
Section: "llm",
|
|
Label: "Memory Lock",
|
|
Description: "Lock model memory to prevent swapping",
|
|
Advanced: true,
|
|
Order: 15,
|
|
},
|
|
"low_vram": {
|
|
Section: "llm",
|
|
Label: "Low VRAM",
|
|
Description: "Optimize for systems with limited GPU memory",
|
|
VRAMImpact: true,
|
|
Order: 16,
|
|
},
|
|
"embeddings": {
|
|
Section: "llm",
|
|
Label: "Embeddings",
|
|
Description: "Enable embedding generation mode",
|
|
Order: 17,
|
|
},
|
|
"quantization": {
|
|
Section: "llm",
|
|
Label: "Quantization",
|
|
Description: "Quantization method (e.g. q4_0, q5_1, q8_0)",
|
|
Component: "select",
|
|
Options: QuantizationOptions,
|
|
Advanced: true,
|
|
Order: 20,
|
|
},
|
|
"flash_attention": {
|
|
Section: "llm",
|
|
Label: "Flash Attention",
|
|
Description: "Enable flash attention for faster inference",
|
|
Component: "input",
|
|
Advanced: true,
|
|
Order: 21,
|
|
},
|
|
"reasoning_effort": {
|
|
Section: "llm",
|
|
Label: "Reasoning Effort",
|
|
Description: "Default reasoning effort, forwarded to the backend as the reasoning_effort chat_template_kwarg (jinja models like gpt-oss / LFM2.5 honor it). A per-request reasoning_effort overrides it. 'none' also turns thinking off.",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "", Label: "Unset (model default)"},
|
|
{Value: "none", Label: "none (disable thinking)"},
|
|
{Value: "minimal", Label: "minimal"},
|
|
{Value: "low", Label: "low"},
|
|
{Value: "medium", Label: "medium"},
|
|
{Value: "high", Label: "high"},
|
|
},
|
|
Advanced: true,
|
|
Order: 22,
|
|
},
|
|
"cache_type_k": {
|
|
Section: "llm",
|
|
Label: "KV Cache Type (K)",
|
|
Description: "Quantization type for key cache (e.g. f16, q8_0, q4_0)",
|
|
Component: "select",
|
|
Options: CacheTypeOptions,
|
|
VRAMImpact: true,
|
|
Advanced: true,
|
|
Order: 22,
|
|
},
|
|
"cache_type_v": {
|
|
Section: "llm",
|
|
Label: "KV Cache Type (V)",
|
|
Description: "Quantization type for value cache",
|
|
Component: "select",
|
|
Options: CacheTypeOptions,
|
|
VRAMImpact: true,
|
|
Advanced: true,
|
|
Order: 23,
|
|
},
|
|
|
|
// --- Parameters ---
|
|
"parameters.temperature": {
|
|
Section: "parameters",
|
|
Label: "Temperature",
|
|
Description: "Sampling temperature (higher = more creative, lower = more deterministic)",
|
|
Component: "slider",
|
|
Min: f64(0),
|
|
Max: f64(2),
|
|
Step: f64(0.05),
|
|
Order: 30,
|
|
},
|
|
"parameters.top_p": {
|
|
Section: "parameters",
|
|
Label: "Top P",
|
|
Description: "Nucleus sampling threshold",
|
|
Component: "slider",
|
|
Min: f64(0),
|
|
Max: f64(1),
|
|
Step: f64(0.01),
|
|
Order: 31,
|
|
},
|
|
"parameters.top_k": {
|
|
Section: "parameters",
|
|
Label: "Top K",
|
|
Description: "Top-K sampling: consider only the K most likely tokens",
|
|
Component: "number",
|
|
Min: f64(0),
|
|
Order: 32,
|
|
},
|
|
"parameters.max_tokens": {
|
|
Section: "parameters",
|
|
Label: "Max Tokens",
|
|
Description: "Maximum number of tokens to generate (0 = unlimited)",
|
|
Component: "number",
|
|
Min: f64(0),
|
|
Order: 33,
|
|
},
|
|
"parameters.repeat_penalty": {
|
|
Section: "parameters",
|
|
Label: "Repeat Penalty",
|
|
Description: "Penalize repeated tokens (1.0 = no penalty)",
|
|
Component: "number",
|
|
Min: f64(0),
|
|
Advanced: true,
|
|
Order: 34,
|
|
},
|
|
"parameters.seed": {
|
|
Section: "parameters",
|
|
Label: "Seed",
|
|
Description: "Random seed (-1 = random)",
|
|
Component: "number",
|
|
Advanced: true,
|
|
Order: 35,
|
|
},
|
|
|
|
// --- Templates ---
|
|
"template.chat": {
|
|
Section: "templates",
|
|
Label: "Chat Template",
|
|
Description: "Go template for chat completion requests",
|
|
Component: "code-editor",
|
|
Language: "gotemplate",
|
|
Order: 40,
|
|
},
|
|
"template.chat_message": {
|
|
Section: "templates",
|
|
Label: "Chat Message Template",
|
|
Description: "Go template for individual chat messages",
|
|
Component: "code-editor",
|
|
Language: "gotemplate",
|
|
Order: 41,
|
|
},
|
|
"template.completion": {
|
|
Section: "templates",
|
|
Label: "Completion Template",
|
|
Description: "Go template for completion requests",
|
|
Component: "code-editor",
|
|
Language: "gotemplate",
|
|
Order: 42,
|
|
},
|
|
"template.function": {
|
|
Section: "templates",
|
|
Label: "Functions Template",
|
|
Description: "Go template applied when tools/functions are present in the request",
|
|
Component: "code-editor",
|
|
Language: "gotemplate",
|
|
Order: 43,
|
|
},
|
|
"template.use_tokenizer_template": {
|
|
Section: "templates",
|
|
Label: "Use Tokenizer Template",
|
|
Description: "Use the chat template from the model's tokenizer config",
|
|
Order: 44,
|
|
},
|
|
// Router section template — kept in the templates UI section
|
|
// (rather than the router section under "other") so operators
|
|
// editing prompt shapes find all template-typed fields in one
|
|
// place, mirroring how chat / chat_message are grouped.
|
|
"router.classifier_system_template": {
|
|
Section: "templates",
|
|
Label: "Router Classifier System Prompt",
|
|
Description: "Go text/template (with sprig functions) for the routing system prompt the score classifier feeds to its classifier_model. Executed with `.Policies` ([]{Label, Description}). Empty falls back to the built-in Arch-Router-shaped prompt (route-listing block + JSON output schema). Override when the classifier model was trained on a different schema or you need the routing instructions in a different language. The candidate format scored against the model is fixed at `{\"route\": \"<label>\"}` — keep your override's output schema instruction matching that.",
|
|
Component: "code-editor",
|
|
Language: "gotemplate",
|
|
Order: 45,
|
|
},
|
|
|
|
// --- Alias ---
|
|
"alias": {
|
|
Section: "alias",
|
|
Label: "Alias target",
|
|
Description: "Redirect all traffic for this model to another configured model. When set, every other field on this config is ignored and requests are served by the target model.",
|
|
Component: "model-select",
|
|
Order: 0,
|
|
},
|
|
|
|
// --- Pipeline ---
|
|
"pipeline.llm": {
|
|
Section: "pipeline",
|
|
Label: "LLM Model",
|
|
Description: "Model to use for LLM inference in the pipeline",
|
|
Component: "model-select",
|
|
AutocompleteProvider: ProviderModelsChat,
|
|
Order: 60,
|
|
},
|
|
"pipeline.tts": {
|
|
Section: "pipeline",
|
|
Label: "TTS Model",
|
|
Description: "Model to use for text-to-speech in the pipeline",
|
|
Component: "model-select",
|
|
AutocompleteProvider: ProviderModelsTTS,
|
|
Order: 61,
|
|
},
|
|
"pipeline.transcription": {
|
|
Section: "pipeline",
|
|
Label: "Transcription Model",
|
|
Description: "Model to use for speech-to-text in the pipeline",
|
|
Component: "model-select",
|
|
AutocompleteProvider: ProviderModelsTranscript,
|
|
Order: 62,
|
|
},
|
|
"pipeline.vad": {
|
|
Section: "pipeline",
|
|
Label: "VAD Model",
|
|
Description: "Model to use for voice activity detection in the pipeline",
|
|
Component: "model-select",
|
|
AutocompleteProvider: ProviderModelsVAD,
|
|
Order: 63,
|
|
},
|
|
"pipeline.sound_detection": {
|
|
Section: "pipeline",
|
|
Label: "Sound Detection Model",
|
|
Description: "Model to use for sound-event classification (audio tagging, e.g. ced) in the pipeline. When set, committed realtime audio is also classified and the scored AudioSet tags are emitted as a conversation.item.sound_detection event.",
|
|
Component: "model-select",
|
|
AutocompleteProvider: ProviderModels,
|
|
Order: 64,
|
|
},
|
|
"pipeline.sound_detection_window_ms": {
|
|
Section: "pipeline",
|
|
Label: "Sound Detection Window (ms)",
|
|
Description: "Server-side windowing for a sound-only realtime session: length in ms of the audio window classified each hop. 0 = client-driven (the client commits windows).",
|
|
Component: "number",
|
|
Min: f64(0),
|
|
Order: 65,
|
|
},
|
|
"pipeline.sound_detection_hop_ms": {
|
|
Section: "pipeline",
|
|
Label: "Sound Detection Hop (ms)",
|
|
Description: "Server-side windowing hop in ms: how often the server classifies the last window. 0 = client-driven.",
|
|
Component: "number",
|
|
Min: f64(0),
|
|
Order: 66,
|
|
},
|
|
"pipeline.reasoning_effort": {
|
|
Section: "pipeline",
|
|
Label: "Reasoning Effort",
|
|
Description: "Reasoning effort for the pipeline's LLM, forwarded to the backend as the reasoning_effort chat_template_kwarg (jinja models like gpt-oss / LFM2.5 honor it). Overrides the LLM model's own reasoning_effort. 'none' also turns thinking off.",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "", Label: "Default (model config)"},
|
|
{Value: "none", Label: "none (disable thinking)"},
|
|
{Value: "minimal", Label: "minimal"},
|
|
{Value: "low", Label: "low"},
|
|
{Value: "medium", Label: "medium"},
|
|
{Value: "high", Label: "high"},
|
|
},
|
|
Order: 64,
|
|
},
|
|
"pipeline.disable_thinking": {
|
|
Section: "pipeline",
|
|
Label: "Disable Thinking",
|
|
Description: "Suppress reasoning/thinking output from the pipeline LLM (sets enable_thinking=false on the underlying model). Use for models that emit <think> blocks you don't want spoken or streamed back to the realtime client.",
|
|
Component: "toggle",
|
|
Order: 65,
|
|
},
|
|
"pipeline.streaming.llm": {
|
|
Section: "pipeline",
|
|
Label: "Stream LLM",
|
|
Description: "Stream LLM tokens to the realtime client as they are generated instead of waiting for the full response. Emits incremental response.output_audio_transcript.delta / text deltas.",
|
|
Component: "toggle",
|
|
Order: 66,
|
|
},
|
|
"pipeline.streaming.tts": {
|
|
Section: "pipeline",
|
|
Label: "Stream TTS",
|
|
Description: "Stream synthesized audio chunks to the realtime client as they are produced (requires a TTS backend that implements TTSStream). Falls back to unary synthesis otherwise.",
|
|
Component: "toggle",
|
|
Order: 67,
|
|
},
|
|
"pipeline.streaming.transcription": {
|
|
Section: "pipeline",
|
|
Label: "Stream Transcription",
|
|
Description: "Stream partial transcription text to the realtime client as the STT backend produces it (requires a transcription backend that implements AudioTranscriptionStream). Falls back to unary transcription otherwise.",
|
|
Component: "toggle",
|
|
Order: 68,
|
|
},
|
|
"pipeline.streaming.clause_chunking": {
|
|
Section: "pipeline",
|
|
Label: "Clause Chunking",
|
|
Description: "Split the streamed reply into speakable clauses and synthesize each as soon as it completes, instead of buffering the whole message before TTS — lower time-to-first-audio. Script-aware (handles CJK 。!? and Thai/Lao spaces), so it does not whitespace-split. Requires Stream LLM; off buffers the whole message.",
|
|
Component: "toggle",
|
|
Order: 69,
|
|
},
|
|
"pipeline.voice_recognition.model": {
|
|
Section: "pipeline",
|
|
Label: "Voice Recognition Model",
|
|
Description: "Speaker-recognition backend model used to gate the pipeline behind speaker verification. Leave empty to disable the voice gate.",
|
|
Component: "model-select",
|
|
AutocompleteProvider: ProviderModels,
|
|
Order: 70,
|
|
},
|
|
"pipeline.voice_recognition.mode": {
|
|
Section: "pipeline",
|
|
Label: "Voice Gate Mode",
|
|
Description: "How callers are authorized: 'identify' matches the speaker 1:N against the voice registry; 'verify' matches 1:few against the configured reference audios.",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "identify", Label: "identify (registry)"},
|
|
{Value: "verify", Label: "verify (references)"},
|
|
},
|
|
Order: 71,
|
|
},
|
|
"pipeline.voice_recognition.threshold": {
|
|
Section: "pipeline",
|
|
Label: "Voice Gate Threshold",
|
|
Description: "Maximum cosine distance between the caller and an authorized speaker that still counts as a match. Lower is stricter. Default 0.25 is tuned for the ECAPA-TDNN encoder on VoxCeleb.",
|
|
Component: "slider",
|
|
Min: f64(0.01),
|
|
Max: f64(2),
|
|
Step: f64(0.01),
|
|
Order: 72,
|
|
},
|
|
"pipeline.voice_recognition.when": {
|
|
Section: "pipeline",
|
|
Label: "Voice Gate When",
|
|
Description: "How often to verify the speaker: 'every' checks each utterance; 'first' verifies once and then trusts the session.",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "every", Label: "every utterance"},
|
|
{Value: "first", Label: "first only"},
|
|
},
|
|
Order: 73,
|
|
},
|
|
"pipeline.voice_recognition.on_reject": {
|
|
Section: "pipeline",
|
|
Label: "Voice Gate On Reject",
|
|
Description: "What to do with an unauthorized utterance: 'drop_event' drops it and emits an error event to the client; 'drop_silent' drops it quietly.",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "drop_event", Label: "drop + error event"},
|
|
{Value: "drop_silent", Label: "drop silently"},
|
|
},
|
|
Order: 74,
|
|
},
|
|
"pipeline.voice_recognition.anti_spoofing": {
|
|
Section: "pipeline",
|
|
Label: "Voice Gate Anti-Spoofing",
|
|
Description: "Enable the backend liveness/anti-spoofing check (verify mode only) to reject replayed or synthesized audio.",
|
|
Component: "toggle",
|
|
Order: 75,
|
|
},
|
|
"pipeline.voice_recognition.allow.names": {
|
|
Section: "pipeline",
|
|
Label: "Voice Gate Allowed Names",
|
|
Description: "Identify mode: authorize only registry identities whose name matches one of these exactly. Empty allows any registered identity.",
|
|
Component: "string-list",
|
|
Order: 76,
|
|
},
|
|
"pipeline.voice_recognition.allow.labels": {
|
|
Section: "pipeline",
|
|
Label: "Voice Gate Allowed Labels",
|
|
Description: "Identify mode: authorize any registry identity carrying one of these label keys. Empty allows any registered identity.",
|
|
Component: "string-list",
|
|
Order: 77,
|
|
},
|
|
"pipeline.voice_recognition.references": {
|
|
Section: "pipeline",
|
|
Label: "Voice Gate References",
|
|
Description: "Verify mode: the authorized reference speakers, each with a name and an audio file path the caller's voice is matched against.",
|
|
Component: "json-editor",
|
|
Order: 78,
|
|
},
|
|
"pipeline.voice_recognition.enforce": {
|
|
Section: "pipeline",
|
|
Label: "Voice Gate Enforce",
|
|
Description: "Whether the gate rejects unauthorized speakers. Enabled (default) drops unauthorized utterances before the LLM. Disabled still resolves and surfaces the speaker (for the conversation.item.speaker event and personalization) but never drops a turn.",
|
|
Component: "toggle",
|
|
Order: 80,
|
|
},
|
|
"pipeline.voice_recognition.identity.announce": {
|
|
Section: "pipeline",
|
|
Label: "Speaker Identity Announce",
|
|
Description: "Emit a conversation.item.speaker event to the client naming the recognized speaker. When set, identity is resolved on every turn even if 'when' is 'first'.",
|
|
Component: "toggle",
|
|
Order: 81,
|
|
},
|
|
"pipeline.voice_recognition.identity.announce_unknown": {
|
|
Section: "pipeline",
|
|
Label: "Speaker Identity Announce Unknown",
|
|
Description: "Also emit the conversation.item.speaker event (with matched=false) when no confident match is found. Default only announces on a match.",
|
|
Component: "toggle",
|
|
Order: 82,
|
|
},
|
|
"pipeline.voice_recognition.identity.personalize": {
|
|
Section: "pipeline",
|
|
Label: "Speaker Identity Personalize",
|
|
Description: "Inform the LLM who is speaking so it can tailor replies. Enables the name and system-note injection below.",
|
|
Component: "toggle",
|
|
Order: 83,
|
|
},
|
|
"pipeline.voice_recognition.identity.inject_name": {
|
|
Section: "pipeline",
|
|
Label: "Speaker Identity Inject Name",
|
|
Description: "Personalization: set the per-message OpenAI 'name' field on each user turn to the recognized speaker.",
|
|
Component: "toggle",
|
|
Order: 84,
|
|
},
|
|
"pipeline.voice_recognition.identity.inject_system_note": {
|
|
Section: "pipeline",
|
|
Label: "Speaker Identity Inject System Note",
|
|
Description: "Personalization: append a 'The current speaker is <name>.' note to the system message reflecting the latest speaker.",
|
|
Component: "toggle",
|
|
Order: 85,
|
|
},
|
|
"pipeline.voice_recognition.identity.note_unknown": {
|
|
Section: "pipeline",
|
|
Label: "Speaker Identity Note Unknown",
|
|
Description: "Personalization: when the speaker is unidentified, append 'The current speaker is unknown.' to the system message so the model can ask who it is talking to.",
|
|
Component: "toggle",
|
|
Order: 86,
|
|
},
|
|
"pipeline.max_history_items": {
|
|
Section: "pipeline",
|
|
Label: "Max History Items",
|
|
Description: "Cap how many trailing conversation items are fed to the LLM each realtime turn (0 = unlimited, rely on the LLM's context window). Set it on a composed pipeline (VAD+STT+LLM+TTS) so a long-running session doesn't grow until the context fills. Unset uses the per-model-type default.",
|
|
Component: "number",
|
|
Order: 79,
|
|
},
|
|
|
|
// --- Functions ---
|
|
"function.grammar.parallel_calls": {
|
|
Section: "functions",
|
|
Label: "Parallel Calls",
|
|
Description: "Allow the LLM to return multiple function calls in one response",
|
|
Order: 70,
|
|
},
|
|
"function.grammar.mixed_mode": {
|
|
Section: "functions",
|
|
Label: "Mixed Mode",
|
|
Description: "Allow the LLM to return both text and function calls",
|
|
Order: 71,
|
|
},
|
|
"function.grammar.disable": {
|
|
Section: "functions",
|
|
Label: "Disable Grammar",
|
|
Description: "Disable grammar-constrained generation for function calls",
|
|
Advanced: true,
|
|
Order: 72,
|
|
},
|
|
|
|
// --- TTS ---
|
|
"tts.voice": {
|
|
Section: "tts",
|
|
Label: "Voice",
|
|
Description: "Default voice for TTS output",
|
|
Component: "input",
|
|
Order: 90,
|
|
},
|
|
|
|
// --- Diffusers ---
|
|
"diffusers.pipeline_type": {
|
|
Section: "diffusers",
|
|
Label: "Pipeline Type",
|
|
Description: "Diffusers pipeline type (e.g. StableDiffusionPipeline)",
|
|
Component: "select",
|
|
Options: DiffusersPipelineOptions,
|
|
Order: 80,
|
|
},
|
|
"diffusers.scheduler_type": {
|
|
Section: "diffusers",
|
|
Label: "Scheduler Type",
|
|
Description: "Noise scheduler type",
|
|
Component: "select",
|
|
Options: DiffusersSchedulerOptions,
|
|
Order: 81,
|
|
},
|
|
"diffusers.cuda": {
|
|
Section: "diffusers",
|
|
Label: "CUDA",
|
|
Description: "Enable CUDA for diffusers",
|
|
Order: 82,
|
|
},
|
|
|
|
// --- PII filtering (per-model) ---
|
|
"pii.enabled": {
|
|
Section: "pii",
|
|
Label: "PII Filtering Enabled",
|
|
Description: "Enable PII redaction middleware for this model. Unset means use the default (off for local backends, on for proxy-* / cloud-hosted backends).",
|
|
Component: "toggle",
|
|
Order: 200,
|
|
},
|
|
"pii.detectors": {
|
|
Section: "pii",
|
|
Label: "PII Detector Models",
|
|
Description: "Token-classification (NER) models that scan this model's requests for PII. The detection policy (which entities, what action, min score) lives on each detector model's own PII Detection block. Multiple detectors union their hits.",
|
|
Component: "model-multi-select",
|
|
AutocompleteProvider: "models:token_classify",
|
|
Order: 201,
|
|
},
|
|
|
|
// --- PII detection policy (on a token_classify detector model) ---
|
|
"pii_detection.min_score": {
|
|
Section: "pii",
|
|
Label: "Detector Min Score",
|
|
Description: "When this model is used as a PII detector, drop detections scored below this confidence before they are acted on. 0 keeps every detection.",
|
|
Component: "slider",
|
|
Min: f64(0),
|
|
Max: f64(1),
|
|
Step: f64(0.01),
|
|
Order: 210,
|
|
},
|
|
"pii_detection.default_action": {
|
|
Section: "pii",
|
|
Label: "Detector Default Action",
|
|
Description: "Action applied to detected entity groups with no explicit per-entity override. Defaults to mask — the safe-by-default policy for a PII filter.",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "mask", Label: "mask (redact the span)"},
|
|
{Value: "block", Label: "block (reject the request)"},
|
|
{Value: "allow", Label: "allow (detect & log only)"},
|
|
},
|
|
Default: "mask",
|
|
Order: 211,
|
|
},
|
|
"pii_detection.entity_actions": {
|
|
Section: "pii",
|
|
Label: "Detector Entity Actions",
|
|
Description: "Per-entity-group action policy for this detector model (e.g. PASSWORD → block, EMAIL → mask). Groups without an entry use the default action.",
|
|
Component: "entity-action-list",
|
|
Order: 212,
|
|
},
|
|
"pii_detection.builtins": {
|
|
Section: "pii",
|
|
Label: "Built-in Secret Patterns",
|
|
Description: "Built-in regex patterns for common credentials (API keys, tokens, private keys). Turning any on makes this a pattern detector — it matches high-entropy secrets the NER tier can't, in-process with no model load.",
|
|
Component: "pii-builtins-select",
|
|
Options: builtinPatternOptions(),
|
|
Order: 213,
|
|
},
|
|
"pii_detection.patterns": {
|
|
Section: "pii",
|
|
Label: "Custom Secret Patterns",
|
|
Description: "Operator-defined patterns in a restricted regex subset (e.g. \"sk-prefix-\\w+\"). Each must contain a fixed literal anchor of ≥3 chars; open-ended shapes like emails are rejected (leave those to NER). Matches report under the pattern name as the entity group.",
|
|
Component: "pii-pattern-list",
|
|
Order: 214,
|
|
},
|
|
|
|
// --- Cloud passthrough proxy ---
|
|
// These only have an effect when Backend is set to
|
|
// "cloud-proxy". When the upstream URL is empty, the model
|
|
// fails closed — the chat handler does NOT silently fall back
|
|
// to the local gRPC pipeline.
|
|
"proxy.mode": {
|
|
Section: "proxy",
|
|
Label: "Proxy Mode",
|
|
Description: "passthrough forwards the client's OpenAI body verbatim — point upstream_url at an OpenAI-compatible endpoint (incl. Anthropic's /v1/chat/completions compat layer). translate converts OpenAI ↔ Anthropic Messages so you can target a native API (/v1/messages); tool_calls and usage tokens survive the round-trip.",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "passthrough", Label: "passthrough (raw forward)"},
|
|
{Value: "translate", Label: "translate (OpenAI ↔ native)"},
|
|
},
|
|
Default: "passthrough",
|
|
Order: 208,
|
|
},
|
|
"proxy.provider": {
|
|
Section: "proxy",
|
|
Label: "Proxy Provider",
|
|
Description: "Upstream API family. Drives auth header shape (Bearer vs x-api-key + anthropic-version) and, in translate mode, which request/response codec is used.",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "openai", Label: "OpenAI"},
|
|
{Value: "anthropic", Label: "Anthropic"},
|
|
},
|
|
Default: "openai",
|
|
Order: 209,
|
|
},
|
|
"proxy.upstream_url": {
|
|
Section: "proxy",
|
|
Label: "Proxy Upstream URL",
|
|
Description: "Full POST endpoint of the upstream provider (e.g. https://api.openai.com/v1/chat/completions). Only used when Backend is cloud-proxy.",
|
|
Component: "input",
|
|
Order: 210,
|
|
},
|
|
"proxy.api_key_env": {
|
|
Section: "proxy",
|
|
Label: "Proxy API Key Env Var",
|
|
Description: "Name of the environment variable holding the upstream API key. Reading from env keeps the secret out of the YAML and the admin UI.",
|
|
Component: "input",
|
|
Order: 211,
|
|
},
|
|
"proxy.upstream_model": {
|
|
Section: "proxy",
|
|
Label: "Proxy Upstream Model",
|
|
Description: "Model name sent to the upstream. Leave empty to forward the client's model field unchanged. Useful when the LocalAI alias differs from the upstream's canonical name.",
|
|
Component: "input",
|
|
Order: 212,
|
|
},
|
|
"proxy.request_timeout_seconds": {
|
|
Section: "proxy",
|
|
Label: "Proxy Request Timeout (seconds)",
|
|
Description: "Caps the upstream HTTP request duration. 0 disables the deadline; the request still ends when the client disconnects.",
|
|
Component: "number",
|
|
Min: f64(0),
|
|
Order: 213,
|
|
},
|
|
|
|
// --- MITM intercept hosts ---
|
|
// Each host listed here is claimed by this model config; the
|
|
// cloudproxy MITM listener (see Middleware → MITM Proxy) uses
|
|
// THIS config's pii: settings to filter the intercepted traffic.
|
|
// A host claimed by two configs is a critical error — the
|
|
// listener refuses to start until resolved.
|
|
"mitm.hosts": {
|
|
Section: "mitm",
|
|
Label: "MITM Intercept Hosts",
|
|
Description: "Hostnames the cloudproxy MITM proxy terminates TLS for on behalf of this model config. PII filtering and pattern overrides flow from this model when the host is intercepted. Each host must be unique across all configs.",
|
|
Component: "string-list",
|
|
Order: 220,
|
|
},
|
|
|
|
// --- Router ---
|
|
// Routing turns this model config into a dispatcher: the
|
|
// classifier scores every policy label as a continuation of
|
|
// the routing prompt and picks the first candidate whose
|
|
// labels are a superset of the active set. The Routing tab of
|
|
// the middleware admin page surfaces every model with a router
|
|
// block.
|
|
"router.classifier": {
|
|
Section: "router",
|
|
Label: "Classifier",
|
|
Description: "Picks a candidate by scoring every policy label against the prompt. Only \"score\" is shipped today; it asks the classifier_model to rank each label and reads off the softmax. Empty defaults to \"score\".",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "score", Label: "Score (Arch-Router-style)"},
|
|
},
|
|
Order: 230,
|
|
},
|
|
"router.classifier_model": {
|
|
Section: "router",
|
|
Label: "Classifier Model",
|
|
Description: "Loaded LocalAI model the score classifier asks to rank each policy label as a continuation. Must support the Score gRPC primitive (today: llama-cpp, vLLM) and use the ChatML template. Arch-Router-1.5B Q4_K_M is the canonical choice; any small ChatML instruct model also works at a higher activation_threshold.",
|
|
Component: "model-select",
|
|
AutocompleteProvider: ProviderModelsScore,
|
|
Order: 231,
|
|
},
|
|
"router.fallback": {
|
|
Section: "router",
|
|
Label: "Fallback Model",
|
|
Description: "Model used when no candidate's labels cover the classifier's active label set, or when the classifier errors. Empty means router failures bubble up as HTTP 500 — fail-fast, not silent-bypass.",
|
|
Component: "model-select",
|
|
AutocompleteProvider: ProviderModelsChat,
|
|
Order: 232,
|
|
},
|
|
"router.activation_threshold": {
|
|
Section: "router",
|
|
Label: "Activation Threshold",
|
|
Description: "Softmax-probability floor a policy must clear to join the active label set for a request. Higher → single-label dominant routes; lower → more multi-label activations. 0 picks the package default (0.15). On Arch-Router-1.5B a value around 0.40 keeps the dominant label clean without losing genuine compound activations.",
|
|
Component: "slider",
|
|
Min: f64(0),
|
|
Max: f64(1),
|
|
Step: f64(0.05),
|
|
Order: 233,
|
|
},
|
|
"router.classifier_cache_size": {
|
|
Section: "router",
|
|
Label: "Classifier L1 Cache Size",
|
|
Description: "Bounded LRU keyed on (case-folded, whitespace-trimmed) prompt — amortises the classifier round-trip across verbatim repeats common in agent loops. 0 here means \"use the default\" (1024); the cache cannot be disabled from YAML.",
|
|
Component: "number",
|
|
Min: f64(0),
|
|
Order: 234,
|
|
},
|
|
"router.policies": {
|
|
Section: "router",
|
|
Label: "Policies",
|
|
Description: "Label vocabulary the classifier scores over. Each policy has a label and a short natural-language description fed verbatim to the classifier model. Short action-oriented sentences work best (\"writing or debugging code\"; \"small talk\").",
|
|
Component: "router-policies",
|
|
Order: 235,
|
|
},
|
|
"router.candidates": {
|
|
Section: "router",
|
|
Label: "Candidates",
|
|
Description: "Routing table: each entry binds a downstream model to a set of policy labels it can serve. Order matters — the middleware picks the FIRST candidate whose labels are a superset of the active set, so list candidates smallest → largest.",
|
|
Component: "router-candidates",
|
|
Order: 236,
|
|
},
|
|
"router.score_normalization": {
|
|
Section: "router",
|
|
Label: "Score Normalization",
|
|
Description: "How the score classifier collapses per-candidate joint log-probs into the softmax input. \"raw\" (default) feeds joint log-prob as-is — on-distribution for Arch-Router (the route the model would actually emit if decoded freely). \"mean\" divides by candidate token count — fairer to long labels but off-distribution for models trained to emit fixed-format outputs.",
|
|
Component: "select",
|
|
Options: []FieldOption{
|
|
{Value: "", Label: "Raw (default)"},
|
|
{Value: "raw", Label: "Raw"},
|
|
{Value: "mean", Label: "Mean (length-normalised)"},
|
|
},
|
|
Order: 240,
|
|
},
|
|
"router.embedding_cache.embedding_model": {
|
|
Section: "router",
|
|
Label: "L2 Cache: Embedding Model",
|
|
Description: "Embedding model used by the L2 decision cache. Embeds incoming probes and looks them up in the per-router local-store collection. Empty disables the cache entirely. nomic-embed-text-v1.5 is the recommended default.",
|
|
Component: "model-select",
|
|
AutocompleteProvider: ProviderModels,
|
|
Order: 237,
|
|
},
|
|
"router.embedding_cache.similarity_threshold": {
|
|
Section: "router",
|
|
Label: "L2 Cache: Similarity Threshold",
|
|
Description: "Cosine-similarity floor a cache candidate must clear to count as a hit. 0 picks the package default (0.80). Re-tune per embedding model — the histogram on the Routing tab shows where the cosine distribution actually sits.",
|
|
Component: "slider",
|
|
Min: f64(0),
|
|
Max: f64(1),
|
|
Step: f64(0.01),
|
|
Order: 238,
|
|
},
|
|
"router.embedding_cache.confidence_threshold": {
|
|
Section: "router",
|
|
Label: "L2 Cache: Confidence Threshold",
|
|
Description: "Minimum top-label probability a classifier decision must have to be inserted into the cache. 0 picks the package default (0.60). Uncertain decisions are skipped so they can't poison future paraphrases.",
|
|
Component: "slider",
|
|
Min: f64(0),
|
|
Max: f64(1),
|
|
Step: f64(0.05),
|
|
Order: 239,
|
|
},
|
|
"router.embedding_cache.store_name": {
|
|
Section: "router",
|
|
Label: "L2 Cache: Store Name",
|
|
Description: "Optional override for the local-store collection used by this router's cache. Empty defaults to \"router-cache-<router-model-name>\". Two routers sharing a store_name share their cache (rare).",
|
|
Component: "input",
|
|
Order: 240,
|
|
},
|
|
}
|
|
}
|