{"record":{"id":"96225eb4b50fdfea","repo":"BerriAI/litellm","slug":"files-settings-is-not-set-set-it-on-your-config-y","errorCode":null,"errorMessage":"files_settings is not set, set it on your config.yaml file.","messagePattern":"files_settings is not set, set it on your config\\.yaml file\\.","errorType":"exception","errorClass":"ValueError","httpStatus":500,"severity":"error","filePath":"litellm/proxy/openai_files_endpoints/files_endpoints.py","lineNumber":95,"sourceCode":"        raise ValueError(\"invalid files config, expected a list is not a list\")\n\n    for element in config:\n        if isinstance(element, dict):\n            for key, value in element.items():\n                if isinstance(value, str) and value.startswith(\"os.environ/\"):\n                    element[key] = get_secret_str(value)\n\n    files_config = config\n\n\ndef get_files_provider_config(\n    custom_llm_provider: str,\n):\n    global files_config\n    if custom_llm_provider == \"vertex_ai\":\n        return None\n    if files_config is None:\n        raise ValueError(\"files_settings is not set, set it on your config.yaml file.\")\n    for setting in files_config:\n        if setting.get(\"custom_llm_provider\") == custom_llm_provider:\n            return setting\n    return None\n\n\ndef get_first_json_object(file_source: bytes | BinaryIO) -> dict | None:\n    try:\n        if isinstance(file_source, (bytes, bytearray)):\n            newline: Final = file_source.find(b\"\\n\")\n            raw: Final = file_source if newline == -1 else file_source[:newline]\n            first_line = raw.decode(\"utf-8\")\n        else:\n            file_source.seek(0)\n            first_line = file_source.readline().decode(\"utf-8\")\n            file_source.seek(0)\n        return json.loads(first_line.strip())\n    except (json.JSONDecodeError, UnicodeDecodeError, OSError, ValueError):","sourceCodeStart":77,"sourceCodeEnd":113,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/openai_files_endpoints/files_endpoints.py#L77-L113","documentation":"ValueError raised by get_files_provider_config: a files operation was requested for a non-vertex provider, but the global files_config was never set — 'files_settings' is missing from config.yaml. The operator must add the files settings block before using file endpoints.","triggerScenarios":"Thrown at litellm/proxy/openai_files_endpoints/files_endpoints.py:95 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set files_settings in config.yaml for the target provider."],"exampleFix":null,"handlingStrategy":"validation","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-14T00:17:10.932Z"}