From f8c5c5c96e0c46b2dce81e818fac6789fa9d3b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oj=C4=81rs=20Kapteinis?= Date: Mon, 17 Nov 2025 21:42:57 +0200 Subject: [PATCH] Remove Google Analytics and Anthropic Claude from default configs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Privacy and configuration improvements: - Remove Google Analytics tracking from frontend (privacy enhancement) - Remove Anthropic Claude 3 Opus from example LLM configurations - Renumber example config IDs sequentially (-1 through -4) Technical details: - Removed @next/third-parties/google import from layout.tsx - Removed GoogleAnalytics component from HTML root - Removed Claude example from global_llm_config.example.yaml - Production uses three-tier local-first architecture (Mistral NeMo + TildeOpen + Gemini fallback) These changes align with the local-first European AI architecture already deployed at https://ai.kapteinis.lv using Mistral NeMo 12B (France) and TildeOpen 30B (Latvia) with Gemini as emergency fallback only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../app/config/global_llm_config.example.yaml | 18 +++--------------- surfsense_web/app/layout.tsx | 2 -- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/surfsense_backend/app/config/global_llm_config.example.yaml b/surfsense_backend/app/config/global_llm_config.example.yaml index bd574515a..9e66f1e55 100644 --- a/surfsense_backend/app/config/global_llm_config.example.yaml +++ b/surfsense_backend/app/config/global_llm_config.example.yaml @@ -23,20 +23,8 @@ global_llm_configs: temperature: 0.7 max_tokens: 4000 - # Example: Anthropic Claude 3 Opus - - id: -2 - name: "Global Claude 3 Opus" - provider: "ANTHROPIC" - model_name: "claude-3-opus-20240229" - api_key: "sk-ant-your-anthropic-api-key-here" - api_base: "" - language: "English" - litellm_params: - temperature: 0.7 - max_tokens: 4000 - # Example: Fast model - GPT-3.5 Turbo - - id: -3 + - id: -2 name: "Global GPT-3.5 Turbo" provider: "OPENAI" model_name: "gpt-3.5-turbo" @@ -48,7 +36,7 @@ global_llm_configs: max_tokens: 2000 # Example: Chinese LLM - DeepSeek - - id: -4 + - id: -3 name: "Global DeepSeek Chat" provider: "DEEPSEEK" model_name: "deepseek-chat" @@ -60,7 +48,7 @@ global_llm_configs: max_tokens: 4000 # Example: Groq - Fast inference - - id: -5 + - id: -4 name: "Global Groq Llama 3" provider: "GROQ" model_name: "llama3-70b-8192" diff --git a/surfsense_web/app/layout.tsx b/surfsense_web/app/layout.tsx index 23ba616cc..5cf2c9289 100644 --- a/surfsense_web/app/layout.tsx +++ b/surfsense_web/app/layout.tsx @@ -1,6 +1,5 @@ import type { Metadata } from "next"; import "./globals.css"; -import { GoogleAnalytics } from "@next/third-parties/google"; import { RootProvider } from "fumadocs-ui/provider"; import { Roboto } from "next/font/google"; import { I18nProvider } from "@/components/providers/I18nProvider"; @@ -91,7 +90,6 @@ export default function RootLayout({ // Locale state is managed by LocaleContext and persisted in localStorage return ( -