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