Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1 KB

File metadata and controls

29 lines (20 loc) · 1 KB
description
Instructions for using xAI models

xAI Models

To use a language model hosted on xAI, specify xai path in the from field and the associated xai_api_key parameter:

Param Description Default
xai_api_key The xAI API key. -

Example:

models:
- from: xai:grok2-latest
  name: xai
  params:
    xai_api_key: ${secrets:SPICE_GROK_API_KEY}

Refer to the xAI models documentation for more details on available models and configurations.

{% hint style="info" %}

Although the xAI documentation show that xAI models can returned structured outputs, this is not true.

{% endhint %}