Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions website/docs/components/models/xai.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ sidebar_position: 7

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. | - |
| Param | Description | Default |
| ------------- | ---------------- | ------- |
| `xai_api_key` | The xAI API key. | - |

Example:

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

Refer to the [xAI models documentation](https://docs.x.ai/docs/models) for more details on available models and configurations.

:::note
Although the xAI [documentation](https://docs.x.ai/docs/guides/structured-outputs) show that xAI models can returned structured outputs, this is not true.
Although the xAI [documentation](https://docs.x.ai/docs/guides/structured-outputs) shows that xAI models can return structured outputs, this is not true.
:::