style(xai): apply black to xai chat transformation

Made-with: Cursor
This commit is contained in:
Sameer Kankute 2026-05-01 18:41:05 +05:30
parent 2dd016d935
commit 1a377bdd28
No known key found for this signature in database

View file

@ -224,9 +224,7 @@ class XAIChatConfig(OpenAIGPTConfig):
except Exception as e:
verbose_logger.debug(f"Error extracting X.AI web search usage: {e}")
self._normalize_openai_compatible_usage_totals(
getattr(response, "usage", None)
)
self._normalize_openai_compatible_usage_totals(getattr(response, "usage", None))
return response
def _enhance_usage_with_xai_web_search_fields(