{"record":{"id":"bb4a88282e556696","repo":"BerriAI/litellm","slug":"missing-novita-ai-api-key-a-call-is-being-made-t","errorCode":null,"errorMessage":"Missing Novita AI API Key - A call is being made to novita but no key is set either in the environment variables or via params","messagePattern":"Missing Novita AI API Key - A call is being made to novita but no key is set either in the environment variables or via params","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/novita/chat/transformation.py","lineNumber":25,"sourceCode":"\"\"\"\n\nfrom ....types.llms.openai import AllMessageValues\nfrom ...openai.chat.gpt_transformation import OpenAIGPTConfig\n\n\nclass NovitaConfig(OpenAIGPTConfig):\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        if api_key is None:\n            raise ValueError(\n                \"Missing Novita AI API Key - A call is being made to novita but no key is set either in the environment variables or via params\"\n            )\n        headers[\"Authorization\"] = f\"Bearer {api_key}\"\n        headers[\"Content-Type\"] = \"application/json\"\n        headers[\"X-Novita-Source\"] = \"litellm\"\n        return headers\n","sourceCodeStart":7,"sourceCodeEnd":32,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/novita/chat/transformation.py#L7-L32","documentation":"Error \"Missing Novita AI API Key - A call is being made to novita but no key is set either in the environment variables or via params\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/novita/chat/transformation.py:25 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set NOVITA_API_KEY in the environment, or pass api_key='...' to the completion 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"}