From eff299f057e8c507c7c3a344b81c9b19d03a4d07 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 24 Apr 2026 23:03:19 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- supabase/functions/update-agent-config/index.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/supabase/functions/update-agent-config/index.ts b/supabase/functions/update-agent-config/index.ts index b888bce..8e3bc46 100644 --- a/supabase/functions/update-agent-config/index.ts +++ b/supabase/functions/update-agent-config/index.ts @@ -101,12 +101,9 @@ Deno.serve(async (req) => { return jsonResponse(500, { error: "failed to resolve railway project/environment" }); } - // 4) Upsert variáveis (SOUL.md agora vive na imagem Docker — não sobrescrever via env) + // 4) Upsert variáveis (incluindo HERMES_SOUL_OVERRIDE editado pelo admin) const variables: Record = { - OLLAMA_API_KEY: Deno.env.get("OLLAMA_API_KEY") ?? "", - TELEGRAM_BOT_TOKEN: Deno.env.get("TELEGRAM_BOT_TOKEN") ?? "", - TELEGRAM_ALLOWED_USERS: Deno.env.get("TELEGRAM_ALLOWED_USERS") ?? "", - TELEGRAM_HOME_CHANNEL: Deno.env.get("TELEGRAM_HOME_CHANNEL") ?? "", + HERMES_SOUL_OVERRIDE: body.soul_content, HERMES_STT_PROVIDER: body.stt_provider || "local", HERMES_TTS_PROVIDER: body.tts_provider || "disabled", };