From 02feadbd259ad848b89ab00fa6328984c676441d Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 6 Jun 2026 12:22:19 -0300 Subject: [PATCH] Require user LLM credentials --- agent.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/agent.py b/agent.py index f97e991..8ffd7cb 100644 --- a/agent.py +++ b/agent.py @@ -98,8 +98,8 @@ class MailuOpenapiAgent(A2AAgent): llm_provisioning = LLMProvisioning.PLATFORM pricing = Pricing( price_per_call_usd=0.0, - caller_pays_llm=False, - notes="Uses a scoped platform LLM grant through ctx.llm.", + caller_pays_llm=True, + notes="Uses the caller's saved LLM credential through ctx.llm.", ) resources = Resources(cpu="200m", memory="512Mi") egress = EgressPolicy( @@ -131,8 +131,8 @@ class MailuOpenapiAgent(A2AAgent): return { "error": "llm_credentials_missing", "final": ( - "LLM credentials were not available for this run. Hosted " - "generated OpenAPI agents should receive a platform LLM grant." + "LLM key required. Add an LLM credential in Settings > " + "LLM credentials before running this agent." ), "messages": [], }