{"record":{"id":"de6a814c2bbbd14b","repo":"BerriAI/litellm","slug":"googleaistudiofileshandler-does-not-support-file-l","errorCode":null,"errorMessage":"GoogleAIStudioFilesHandler does not support file listing","messagePattern":"GoogleAIStudioFilesHandler does not support file listing","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"litellm/llms/gemini/files/transformation.py","lineNumber":372,"sourceCode":"                        file_id = url.split(\"/files/\")[-1].split(\"?\")[0]\n                        # Add the files/ prefix if not present\n                        if not file_id.startswith(\"files/\"):\n                            file_id = f\"files/{file_id}\"\n\n                return FileDeleted(id=file_id, deleted=True, object=\"file\")\n            else:\n                raise ValueError(f\"Failed to delete file: {raw_response.text}\")\n        except Exception as e:\n            verbose_logger.exception(\"Error parsing file delete response: %s\", e)\n            raise ValueError(f\"Error parsing file delete response: {e}\")\n\n    def transform_list_files_request(\n        self,\n        purpose: str | None,\n        optional_params: dict,\n        litellm_params: dict,\n    ) -> tuple[str, dict]:\n        raise NotImplementedError(\"GoogleAIStudioFilesHandler does not support file listing\")\n\n    def transform_list_files_response(\n        self,\n        raw_response: httpx.Response,\n        logging_obj: LiteLLMLoggingObj,\n        litellm_params: dict,\n    ) -> list[OpenAIFileObject]:\n        raise NotImplementedError(\"GoogleAIStudioFilesHandler does not support file listing\")\n\n    def transform_file_content_request(\n        self,\n        file_content_request,\n        optional_params: dict,\n        litellm_params: dict,\n    ) -> tuple[str, dict]:\n        raise NotImplementedError(\"GoogleAIStudioFilesHandler does not support file content retrieval\")\n\n    def transform_file_content_response(","sourceCodeStart":354,"sourceCodeEnd":390,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/gemini/files/transformation.py#L354-L390","documentation":"Error \"GoogleAIStudioFilesHandler does not support file listing\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/gemini/files/transformation.py:372 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Google AI Studio files do not support listing via this handler."],"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"}