diff --git a/gateway/routes/allowlist.py b/gateway/routes/allowlist.py index 915ce1af219..31569ec4b50 100644 --- a/gateway/routes/allowlist.py +++ b/gateway/routes/allowlist.py @@ -103,6 +103,7 @@ GATEWAY_PATH_PREFIXES: tuple[str, ...] = ( "/cursor/", "/milvus/", "/openai_passthrough/", + "/xai/", # Dynamic provider / toolset passthrough (path templates) "/{provider}/", "/toolset/", diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index fd882937e79..39122bfd94d 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -22634,6 +22634,42 @@ export interface paths { patch: operations["watsonx_proxy_route_watsonx__endpoint__patch"]; trace?: never; }; + "/xai/{endpoint}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Xai Proxy Route + * @description [Docs](https://docs.litellm.ai/docs/pass_through/xai) + */ + get: operations["xai_proxy_route_xai__endpoint__get"]; + /** + * Xai Proxy Route + * @description [Docs](https://docs.litellm.ai/docs/pass_through/xai) + */ + put: operations["xai_proxy_route_xai__endpoint__put"]; + /** + * Xai Proxy Route + * @description [Docs](https://docs.litellm.ai/docs/pass_through/xai) + */ + post: operations["xai_proxy_route_xai__endpoint__post"]; + /** + * Xai Proxy Route + * @description [Docs](https://docs.litellm.ai/docs/pass_through/xai) + */ + delete: operations["xai_proxy_route_xai__endpoint__delete"]; + options?: never; + head?: never; + /** + * Xai Proxy Route + * @description [Docs](https://docs.litellm.ai/docs/pass_through/xai) + */ + patch: operations["xai_proxy_route_xai__endpoint__patch"]; + trace?: never; + }; "/{mcp_server_name}/authorize": { parameters: { query?: never; @@ -70611,6 +70647,161 @@ export interface operations { }; }; }; + xai_proxy_route_xai__endpoint__get: { + parameters: { + query?: never; + header?: never; + path: { + endpoint: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + xai_proxy_route_xai__endpoint__put: { + parameters: { + query?: never; + header?: never; + path: { + endpoint: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + xai_proxy_route_xai__endpoint__post: { + parameters: { + query?: never; + header?: never; + path: { + endpoint: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + xai_proxy_route_xai__endpoint__delete: { + parameters: { + query?: never; + header?: never; + path: { + endpoint: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; + xai_proxy_route_xai__endpoint__patch: { + parameters: { + query?: never; + header?: never; + path: { + endpoint: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": unknown; + }; + }; + /** @description Validation Error */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["HTTPValidationError"]; + }; + }; + }; + }; authorize__mcp_server_name__authorize_get: { parameters: { query: {