From 1093d789bffe1bb984a254c260c4992d7ae6f9d7 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 22:36:28 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- supabase/functions/update-agent-config/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/supabase/functions/update-agent-config/index.ts b/supabase/functions/update-agent-config/index.ts index f0637dc..b888bce 100644 --- a/supabase/functions/update-agent-config/index.ts +++ b/supabase/functions/update-agent-config/index.ts @@ -101,11 +101,12 @@ Deno.serve(async (req) => { return jsonResponse(500, { error: "failed to resolve railway project/environment" }); } - // 4) Upsert variáveis + // 4) Upsert variáveis (SOUL.md agora vive na imagem Docker — não sobrescrever via env) const variables: Record = { - HERMES_SOUL_OVERRIDE: body.soul_content, - HERMES_MODEL: body.model, - HERMES_FALLBACK_MODEL: "openrouter/google/gemma-4-31b-it", + 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_STT_PROVIDER: body.stt_provider || "local", HERMES_TTS_PROVIDER: body.tts_provider || "disabled", };