{"record":{"id":"153ce510a40ce3f1","repo":"BerriAI/litellm","slug":"fireworks-api-key-is-not-set","errorCode":null,"errorMessage":"FIREWORKS_API_KEY is not set","messagePattern":"FIREWORKS_API_KEY is not set","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/fireworks_ai/chat/transformation.py","lineNumber":198,"sourceCode":"                setattr(self.__class__, key, value)\n\n    @classmethod\n    def get_config(cls):\n        return super().get_config()\n\n    def validate_environment(\n        self,\n        headers: dict,\n        model: str,\n        messages: list[AllMessageValues],\n        optional_params: dict,\n        litellm_params: dict,\n        api_key: str | None = None,\n        api_base: str | None = None,\n    ) -> dict:\n        api_key = self._get_api_key(api_key)\n        if api_key is None:\n            raise ValueError(\"FIREWORKS_API_KEY is not set\")\n\n        validated_headers: Final = OpenAIGPTConfig.validate_environment(\n            self,\n            headers=headers,\n            model=model,\n            messages=messages,\n            optional_params=optional_params,\n            litellm_params=litellm_params,\n            api_key=api_key,\n            api_base=api_base,\n        )\n        return self._add_session_affinity_header(validated_headers, litellm_params)\n\n    def get_supported_openai_params(self, model: str):\n        # Base parameters supported by all models\n        supported_params: Final = [\n            \"stream\",\n            \"max_completion_tokens\",","sourceCodeStart":180,"sourceCodeEnd":216,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/fireworks_ai/chat/transformation.py#L180-L216","documentation":"Error \"FIREWORKS_API_KEY is not set\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/fireworks_ai/chat/transformation.py:198 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the FIREWORKS_API_KEY environment variable before making the call, e.g. export FIREWORKS_API_KEY=<your-key>.","Alternatively pass the credential directly via the api_key parameter in the litellm call.","FIREWORKS_AI_API_KEY is also accepted by some code paths."],"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"}