From 37841c2a7d8e6960a00a2a35a32724e22534f008 Mon Sep 17 00:00:00 2001 From: rain <1504569896@qq.com> Date: Sat, 26 Sep 2026 23:31:42 +0800 Subject: [PATCH] feat(types): add project field to GenericLiteLLMParams OpenAI project scoping (OpenAI-Project / client project=) is currently dropped by the Batches and Files API paths. First step of plumbing it through: accept 'project' alongside 'organization' in the shared provider-params type, mirroring how organization is declared. Signed-off-by: rain <1504569896@qq.com> --- litellm/types/router.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/types/router.py b/litellm/types/router.py index 8fd53079156..f96359b440f 100644 --- a/litellm/types/router.py +++ b/litellm/types/router.py @@ -474,6 +474,7 @@ class GenericLiteLLMParams(CredentialLiteLLMParams, CustomPricingLiteLLMParams): max_retries: int | None = None drop_params: bool | str | None = None organization: str | None = None # for openai orgs + project: str | None = None # for openai projects configurable_clientside_auth_params: CONFIGURABLE_CLIENTSIDE_AUTH_PARAMS = None litellm_credential_name: str | None = None provider_affinity_header: str | None = None