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 86c9ae96fc
commit 2e60bf329e
3 changed files with 4 additions and 2 deletions

View file

@ -118,7 +118,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

@ -256,7 +256,7 @@ class XAIResponsesAPIConfig(OpenAIResponsesAPIConfig):
return f"{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

@ -52651,6 +52651,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') */