From 0c15f5c93927c9fc067ffd664a659e705a41cc5e Mon Sep 17 00:00:00 2001 From: rain <1504569896@qq.com> Date: Sun, 27 Sep 2026 17:07:32 +0800 Subject: [PATCH] fix(types): don't declare project on the files/batches request TypedDicts project is a litellm param, not part of the OpenAI request bodies: it is absorbed by GenericLiteLLMParams from kwargs and forwarded to the client constructor. Declaring it on CreateFileRequest / LiteLLMBatchCreateRequest made files.create(**create_file_data) type-check against a key the OpenAI SDK never accepts (+2 reportCallIssue over the repo budget). Also regenerates the dashboard schema.d.ts for the LiteLLM_Params / updateLiteLLMParams project field. --- litellm/types/llms/openai.py | 2 -- ui/litellm-dashboard/src/lib/http/schema.d.ts | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/litellm/types/llms/openai.py b/litellm/types/llms/openai.py index 4593ac597e7..99ab5920c4f 100644 --- a/litellm/types/llms/openai.py +++ b/litellm/types/llms/openai.py @@ -490,7 +490,6 @@ class CreateFileRequest(TypedDict, total=False): file: Required[FileTypes] purpose: Required[CREATE_FILE_REQUESTS_PURPOSE] expires_after: FileExpiresAfter | None - project: str | None extra_headers: dict[str, str] | None extra_body: dict[str, str] | None timeout: float | None @@ -547,7 +546,6 @@ class CreateBatchRequest(TypedDict, total=False): class LiteLLMBatchCreateRequest(CreateBatchRequest, total=False): model: str disable_fallbacks: ReadOnly[bool] - project: str | None class RetrieveBatchRequest(TypedDict, total=False): diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index 6d46af04730..cbeda53cf35 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -33216,6 +33216,8 @@ export interface components { output_cost_per_video_token?: number | null; /** Output Vector Size */ output_vector_size?: number | null; + /** Project */ + project?: string | null; /** Provider Affinity Header */ provider_affinity_header?: string | null; /** Quality Router Config */ @@ -47011,6 +47013,8 @@ export interface components { output_cost_per_video_token?: number | null; /** Output Vector Size */ output_vector_size?: number | null; + /** Project */ + project?: string | null; /** Provider Affinity Header */ provider_affinity_header?: string | null; /** Quality Router Config */