From 96a61d57dff6035f63454149e20f365f3b30d2a1 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 29 Apr 2026 15:38:25 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- supabase/functions/provision-agent/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/supabase/functions/provision-agent/index.ts b/supabase/functions/provision-agent/index.ts index ddc7e54..80e2ddd 100644 --- a/supabase/functions/provision-agent/index.ts +++ b/supabase/functions/provision-agent/index.ts @@ -236,6 +236,10 @@ Deno.serve(async (req) => { ? "openrouter/google/gemma-4-31b-it" : "openrouter/google/gemma-4-27b-a4b-it"; + // Injetar modelo + fallback no container (faltava aqui — bots novos nasciam com model: "") + envVars.HERMES_MODEL = modelFinal; + envVars.HERMES_FALLBACK_MODEL = "openrouter/google/gemma-4-31b-it"; + // 7) Criar serviço no Railway const serviceName = `mika-${agent.uuid_tenant.replace(/-/g, "").slice(0, 8)}`; console.log(`[provision-agent] criando serviço Railway: ${serviceName}`);