feat(ts-sdk): add xAI (Grok) LLM provider to OSS SDK (#6115)

This commit is contained in:
Kartik
2026-07-07 11:29:56 +05:30
committed by GitHub
parent 9d36b2c94d
commit 002fe46ab3
7 changed files with 262 additions and 18 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class XAILLM(LLMBase):
super().__init__(config)
if not self.config.model:
self.config.model = "grok-2-latest"
self.config.model = "grok-4.3"
api_key = self.config.api_key or os.getenv("XAI_API_KEY")
base_url = self.config.xai_base_url or os.getenv("XAI_API_BASE") or "https://api.x.ai/v1"