{"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":"validation","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/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/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_API_KEY environment variable, or pass api_key explicitly in the call."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}