From d6115679bc6c2ae61384849b76497a298f84fa92 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 d545f7ae639..0e1da3466e7 100644 --- a/litellm/types/router.py +++ b/litellm/types/router.py @@ -393,6 +393,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