Authentication
Set yourXAI_API_KEY environment variable. You can get one from xAI here.
Example
UsexAI with your Agent:
Params
For more information, please refer to the xAI docs as well.Params
xAI also supports the params of OpenAI.
XAI_API_KEY environment variable. You can get one from xAI here.
xAI with your Agent: