From 974f11c88170ec58b0dabdbd45d5e3d850dd6808 Mon Sep 17 00:00:00 2001 From: sid Date: Tue, 19 May 2026 22:48:22 +0200 Subject: [PATCH] librechat: add searxng --- hosts/rx4/services/librechat-oci.nix | 7 ++-- hosts/rx4/services/librechat.yaml | 48 +++++++++++++++++++++++----- 2 files changed, 44 insertions(+), 11 deletions(-) diff --git a/hosts/rx4/services/librechat-oci.nix b/hosts/rx4/services/librechat-oci.nix index 02ddf20..41c9928 100644 --- a/hosts/rx4/services/librechat-oci.nix +++ b/hosts/rx4/services/librechat-oci.nix @@ -21,9 +21,10 @@ in externalUrl = "https://${fqdn}"; environmentFile = config.sops.templates.librechat-env-file.path; - # environment = { - # ALLOW_REGISTRATION = "true"; - # }; + environment = { + # ALLOW_REGISTRATION = "true"; + SEARXNG_INSTANCE_URL = "https://searxng.website/"; + }; }; services.nginx.virtualHosts."${fqdn}" = { diff --git a/hosts/rx4/services/librechat.yaml b/hosts/rx4/services/librechat.yaml index 2459252..d5f6d95 100644 --- a/hosts/rx4/services/librechat.yaml +++ b/hosts/rx4/services/librechat.yaml @@ -2,6 +2,7 @@ version: 1.3.11 cache: true interface: + customWelcome: "Such compose. Much yaml. Wow" modelSelect: true parameters: true presets: true @@ -11,17 +12,48 @@ interface: bookmarks: true multiConvo: true + agents: true + fileSearch: true + webSearch: true + +webSearch: + searchProvider: "searxng" + searxngInstanceUrl: "${SEARXNG_INSTANCE_URL}" + rerankerType: "none" # TODO: add cohere rerank + endpoints: + agents: + disableBuilder: false + recursionLimit: 50 + maxRecursionLimit: 100 + + maxCitations: 30 + maxCitationsPerFile: 7 + minRelevanceScore: 0.45 + + capabilities: + - "deferred_tools" + - "execute_code" + - "file_search" + - "web_search" + - "artifacts" + - "subagents" + - "actions" + - "context" + - "skills" + - "tools" + - "chain" + custom: - - name: 'OpenRouter' - apiKey: '${OPENROUTER_KEY}' - baseURL: 'https://openrouter.ai/api/v1' + - name: "OpenRouter" + apiKey: "${OPENROUTER_KEY}" + baseURL: "https://openrouter.ai/api/v1" headers: - x-librechat-body-parentmessageid: '{{LIBRECHAT_BODY_PARENTMESSAGEID}}' + x-librechat-body-parentmessageid: "{{LIBRECHAT_BODY_PARENTMESSAGEID}}" models: - default: ['deepseek/deepseek-v4-flash'] + default: ["deepseek/deepseek-v4-flash"] fetch: true titleConvo: true - titleModel: 'deepseek/deepseek-v4-flash' - dropParams: ['stop'] - modelDisplayLabel: 'OpenRouter' + titleModel: "deepseek/deepseek-v4-flash" + dropParams: ["stop"] + modelDisplayLabel: "OpenRouter" -- 2.51.2