From 465d8cd633318d97a374eca54cfac1a50c06fe1b Mon Sep 17 00:00:00 2001 From: hx <1367557521@qq.com> Date: Sun, 27 Sep 2026 18:07:44 +0800 Subject: [PATCH] chore(ui): regenerate schema.d.ts for xai_oauth_token_file Co-authored-by: Cursor --- litellm/types/router.py | 6 +++--- ui/litellm-dashboard/src/lib/http/schema.d.ts | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/litellm/types/router.py b/litellm/types/router.py index d65b37cc0cd..f7fe653a3e5 100644 --- a/litellm/types/router.py +++ b/litellm/types/router.py @@ -493,9 +493,9 @@ class GenericLiteLLMParams(CredentialLiteLLMParams, CustomPricingLiteLLMParams): xai_oauth_token_file: str | None = Field( default=None, description=( - "Per-deployment xAI OAuth token file path. When set with use_xai_oauth=True, " - "the request reads that account's OAuth credentials instead of the global " - "token file, enabling multi-account SuperGrok routing." + "Per-deployment xAI OAuth token file, relative to XAI_OAUTH_TOKEN_DIR or an absolute path inside it. " + "With use_xai_oauth=True the deployment authenticates as that account, enabling multi-account " + "SuperGrok routing. Deployment config only: the proxy rejects it in request bodies." ), ) model_config = ConfigDict(extra="allow", arbitrary_types_allowed=True) diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index 34cde5bbef6..d106094c5dc 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -35576,6 +35576,11 @@ export interface components { vertex_project?: string | null; /** Watsonx Region Name */ watsonx_region_name?: string | null; + /** + * Xai Oauth Token File + * @description Per-deployment xAI OAuth token file, relative to XAI_OAUTH_TOKEN_DIR or an absolute path inside it. With use_xai_oauth=True the deployment authenticates as that account, enabling multi-account SuperGrok routing. Deployment config only: the proxy rejects it in request bodies. + */ + xai_oauth_token_file?: string | null; } & { [key: string]: unknown; }; @@ -50996,6 +51001,11 @@ export interface components { vertex_project?: string | null; /** Watsonx Region Name */ watsonx_region_name?: string | null; + /** + * Xai Oauth Token File + * @description Per-deployment xAI OAuth token file, relative to XAI_OAUTH_TOKEN_DIR or an absolute path inside it. With use_xai_oauth=True the deployment authenticates as that account, enabling multi-account SuperGrok routing. Deployment config only: the proxy rejects it in request bodies. + */ + xai_oauth_token_file?: string | null; } & { [key: string]: unknown; };