{"record":{"id":"5c6d10a0b9dc144b","repo":"BerriAI/litellm","slug":"missing-featherless-ai-api-key","errorCode":null,"errorMessage":"Missing Featherless AI API Key","messagePattern":"Missing Featherless AI API Key","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/featherless_ai/chat/transformation.py","lineNumber":124,"sourceCode":"            or get_secret_str(\"FEATHERLESS_AI_API_BASE\")\n            or get_secret_str(\"FEATHERLESS_API_BASE\")\n            or \"https://api.featherless.ai/v1\"\n        )\n        dynamic_api_key = api_key or get_secret_str(\"FEATHERLESS_AI_API_KEY\") or get_secret_str(\"FEATHERLESS_API_KEY\")\n        return api_base, dynamic_api_key\n\n    def validate_environment(\n        self,\n        headers: dict,\n        model: str,\n        messages: list,\n        optional_params: dict,\n        litellm_params: dict,\n        api_key: str | None = None,\n        api_base: str | None = None,\n    ) -> dict:\n        if not api_key:\n            raise ValueError(\"Missing Featherless AI API Key\")\n\n        headers[\"Authorization\"] = f\"Bearer {api_key}\"\n        headers[\"Content-Type\"] = \"application/json\"\n\n        return headers\n","sourceCodeStart":106,"sourceCodeEnd":130,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/featherless_ai/chat/transformation.py#L106-L130","documentation":"Error \"Missing Featherless AI API Key\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/featherless_ai/chat/transformation.py:124 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the Featherless AI API key (FEATHERLESS_API_KEY) or pass api_key."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}