fix(xai): annotate error-class overrides and regenerate schema.d.ts with enterprise routes

This commit is contained in:
hx 2026-10-05 19:48:51 +08:00
parent 5b91e1cc73
commit 6d1bdf678a
3 changed files with 4 additions and 2 deletions

View file

@ -128,7 +128,7 @@ class XAIChatConfig(OpenAIGPTConfig):
)
def get_error_class(
self, error_message: str, status_code: int, headers: dict[str, str] | httpx.Headers
self, error_message: str, status_code: int, headers: dict | httpx.Headers # mutable-ok: mirrors the base class signature
) -> BaseLLMException:
return super().get_error_class(
error_message=error_message,

View file

@ -254,7 +254,7 @@ class XAIResponsesAPIConfig(OpenAIResponsesAPIConfig):
return join_api_base(api_base, "responses")
def get_error_class(
self, error_message: str, status_code: int, headers: dict[str, str] | httpx.Headers
self, error_message: str, status_code: int, headers: dict | httpx.Headers # mutable-ok: mirrors the base class signature
) -> BaseLLMException:
return super().get_error_class(
error_message=error_message,

View file

@ -52571,6 +52571,8 @@ export interface operations {
object_team_id?: string | null;
/** @description Filter by token (key hash) present in before_value or updated_values JSON (PostgreSQL only) */
object_key_hash?: string | null;
/** @description Match a row whose id, object_id, changed_by, or changed_by_api_key equals this value */
search?: string | null;
/** @description Column to sort by (e.g. 'updated_at', 'action', 'table_name') */
sort_by?: string | null;
/** @description Sort order ('asc' or 'desc') */