Require user LLM credentials
All checks were successful
build / build (push) Successful in 17s

This commit is contained in:
robert
2026-06-06 12:21:31 -03:00
parent f436d90647
commit dd489cb083

View File

@@ -35,11 +35,11 @@ class AgentReviewer(A2AAgent[ReviewerConfig, NoAuth]):
config_model = ReviewerConfig config_model = ReviewerConfig
auth_model = NoAuth auth_model = NoAuth
tools_used = ("deepagents", "a2a-pack", "litellm", "microsandbox", "gitea") tools_used = ("deepagents", "a2a-pack", "litellm", "microsandbox", "gitea")
llm_provisioning = LLMProvisioning.PLATFORM_OR_CALLER_PROVIDED llm_provisioning = LLMProvisioning.PLATFORM
wants_cp_jwt = True wants_cp_jwt = True
pricing = Pricing( pricing = Pricing(
price_per_call_usd=0.05, price_per_call_usd=0.05,
caller_pays_llm=False, caller_pays_llm=True,
notes=( notes=(
"Reads target source via a short-lived, repo-scoped Gitea " "Reads target source via a short-lived, repo-scoped Gitea "
"token minted on the caller's behalf. Never deploys or writes." "token minted on the caller's behalf. Never deploys or writes."
@@ -74,8 +74,8 @@ class AgentReviewer(A2AAgent[ReviewerConfig, NoAuth]):
return { return {
"error": "llm_credentials_missing", "error": "llm_credentials_missing",
"final": ( "final": (
"LLM credentials were not available for this review. " "LLM key required. Add an LLM credential in Settings > "
"Hosted reviewer runs should receive a platform LLM grant." "LLM credentials before running this review."
), ),
"agent_name": agent_name, "agent_name": agent_name,
"ref": ref, "ref": ref,