From 5cfaedb9815368c3520d80ce19ad8890b4da5072 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 74ecee99cfa..ae971be5b7e 100644 --- a/litellm/types/router.py +++ b/litellm/types/router.py @@ -426,9 +426,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 2b8ed9aa58d..e3f6e9f4d8b 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -33328,6 +33328,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; }; @@ -47147,6 +47152,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; };