Files
crewAI/lib/cli/tests/deploy/test_validate.py
Joao Moura 47bbb8ab44 Make missing OPENAI_API_KEY error actionable
The OpenAI provider raised a bare "OPENAI_API_KEY is required", which
misdirects CrewAI AMP users who configured an org-wide LLM Connection.
The error now explains the remediation (set the OPENAI_API_KEY
environment variable or pass api_key to LLM()) and clarifies that
org-wide LLM Connections do not apply to code-first AMP deployments,
which read keys from deployment environment variables.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 21:48:34 -07:00

20 KiB