{"record":{"id":"6f68de2ec935b27b","repo":"BerriAI/litellm","slug":"llm-router-not-initialized-ensure-models-are-adde","errorCode":null,"errorMessage":"LLM Router not initialized. Ensure models are added to proxy.","messagePattern":"LLM Router not initialized\\. Ensure models are added to proxy\\.","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/vector_store_endpoints/endpoints.py","lineNumber":232,"sourceCode":"            target_model_names_list = [m.strip() for m in target_model_names.split(\",\")]\n        elif isinstance(target_model_names, list):\n            target_model_names_list = target_model_names\n        else:\n            raise HTTPException(\n                status_code=400,\n                detail=\"target_model_names must be a comma-separated string or list of model names\",\n            )\n\n        # Get managed vector stores hook\n        managed_vector_stores: Final[Any] = proxy_logging_obj.get_proxy_hook(\"managed_vector_stores\")\n        if managed_vector_stores is None:\n            raise HTTPException(\n                status_code=500,\n                detail=\"Managed vector stores not configured. Please ensure the proxy is initialized with database support.\",\n            )\n\n        if llm_router is None:\n            raise HTTPException(\n                status_code=500,\n                detail=\"LLM Router not initialized. Ensure models are added to proxy.\",\n            )\n\n        # Create vector store across multiple models\n        response: Final = await managed_vector_stores.acreate_vector_store(\n            create_request=data,\n            llm_router=llm_router,\n            target_model_names_list=target_model_names_list,\n            litellm_parent_otel_span=user_api_key_dict.parent_otel_span,\n            user_api_key_dict=user_api_key_dict,\n        )\n\n        return response\n\n    processor: Final = ProxyBaseLLMRequestProcessing(data=data)\n    try:\n        return await processor.base_process_llm_request(","sourceCodeStart":214,"sourceCodeEnd":250,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/vector_store_endpoints/endpoints.py#L214-L250","documentation":"llm_router is None while routing a managed vector-store request: the proxy has no models configured, so there is no router to resolve the target model names. Add models via config or the /model/new endpoint before using multi-model vector store support.","triggerScenarios":"Thrown at litellm/proxy/vector_store_endpoints/endpoints.py:232 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add models to the proxy (model_list in config.yaml) so the LLM router initializes."],"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-14T05:17:10.506Z"}