grok function configures Grok as your model provider.
Configuration
Thegrok function accepts a model name string or a configuration object:
Options
ID of the model to use.See the xAI models list.
The xAI API key to use for authenticating your request. By default we’ll
search for and use the
XAI_API_KEY environment variable.The base URL for the xAI API.
The default parameters to use for the model (ex:
temperature, max_tokens,
etc).Available Models
Gemini