Reverting the tools commit (#2404)
This commit is contained in:
@@ -15,11 +15,7 @@ class XAILLM(LLMBase):
|
||||
self.config.model = "grok-2-latest"
|
||||
|
||||
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"
|
||||
)
|
||||
base_url = self.config.xai_base_url or os.getenv("XAI_API_BASE") or "https://api.x.ai/v1"
|
||||
self.client = OpenAI(api_key=api_key, base_url=base_url)
|
||||
|
||||
def generate_response(self, messages: List[Dict[str, str]], response_format=None):
|
||||
|
||||
Reference in New Issue
Block a user