{"record":{"id":"f9aa73d57e6eac17","repo":"BerriAI/litellm","slug":"api-base-not-found-for-part","errorCode":null,"errorMessage":"API base not found for {part}","messagePattern":"API base not found for (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":500,"severity":"error","filePath":"litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py","lineNumber":1413,"sourceCode":"                vector_store_name = index_object.litellm_params.vector_store_name\n\n                vector_store = litellm.vector_store_registry.get_litellm_managed_vector_store_from_registry_by_name(\n                    vector_store_name=vector_store_name\n                )\n                if vector_store is None:\n                    raise Exception(f\"Vector store not found for {vector_store_name}\")\n                await assert_user_can_access_vector_store(\n                    vector_store=vector_store,\n                    user_api_key_dict=user_api_key_dict,\n                )\n                litellm_params = vector_store.get(\"litellm_params\") or {}\n                auth_credentials = provider_config.get_auth_credentials(litellm_params=litellm_params)\n\n                extra_headers = auth_credentials.get(\"headers\") or {}\n\n                base_target_url = litellm_params.get(\"api_base\")\n                if base_target_url is None:\n                    raise Exception(f\"API base not found for {part}\")\n                return await BaseOpenAIPassThroughHandler._base_openai_pass_through_handler(\n                    endpoint=endpoint,\n                    request=request,\n                    fastapi_response=fastapi_response,\n                    user_api_key_dict=user_api_key_dict,\n                    base_target_url=base_target_url,\n                    api_key=None,\n                    custom_llm_provider=litellm.LlmProviders.AZURE_AI,\n                    extra_headers=cast(dict, extra_headers),\n                )\n\n    base_target_url = get_secret_str(secret_name=\"AZURE_API_BASE\")\n    if base_target_url is None:\n        raise Exception(\"Required 'AZURE_API_BASE' in environment to make pass-through calls to Azure.\")\n    # Add or update query parameters\n    azure_api_key: Final = passthrough_endpoint_router.get_credentials(\n        custom_llm_provider=litellm.LlmProviders.AZURE.value,\n        region_name=None,","sourceCodeStart":1395,"sourceCodeEnd":1431,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py#L1395-L1431","documentation":"Raised while resolving a pass-through target for a provider segment: the vector store configuration for that provider/part yielded no api_base, so the handler cannot build the upstream URL. Indicates incomplete provider or vector store configuration rather than a bad request.","triggerScenarios":"Thrown at litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:1413 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set api_base for the referenced vector store/index in config.yaml.","Ensure the name in the path resolves to a configured vector store with credentials."],"exampleFix":null,"handlingStrategy":"type-guard","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"}