Skip to content

Commit 691a614

Browse files
authored
Merge branch 'trunk' into docs/snowflake-dml-support
2 parents cb9fc34 + cd75ae4 commit 691a614

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

website/docs/api/HTTP/post-nsql.api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ When `stream` is true, the response is streamed as Server-Sent Events (SSE).
5959

6060
<RequestSchema
6161
title={"Body"}
62-
body={{"description":"Request body to generate an NSQL query","content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"datasets":{"type":["array","null"],"items":{"type":"string"},"description":"Names of datasets to sample from when constructing model context; this is a sampling hint and does not restrict which tables queries can target. If omitted, all datasets are used."},"model":{"type":"string","description":"The name of the model to use for SQL generation. Default: \"nql\""},"query":{"type":"string","description":"The natural language query to be converted into SQL"},"sample_data_enabled":{"type":"boolean","description":"Whether sample data is included in the context for SQL generation. Default: true"},"stream":{"type":"boolean","description":"If true, streams the response instead of waiting for completion"}},"title":"Request"},"example":{"query":"Get the top 5 customers by total sales","model":"nql","stream":false,"sample_data_enabled":true,"datasets":["sales_data"]}}},"required":true}}
62+
body={{"description":"Request body to generate an NSQL query","content":{"application/json":{"schema":{"type":"object","required":["query"],"properties":{"datasets":{"type":["array","null"],"items":{"type":"string"},"description":"Names of datasets to sample from when constructing model context; this is a sampling hint and does not restrict which tables queries can target. If omitted, all datasets are used."},"model":{"type":"string","description":"The name of the model to use for SQL generation. If omitted, Spice defaults to the only compatible LLM model configured in the Spicepod."},"query":{"type":"string","description":"The natural language query to be converted into SQL"},"sample_data_enabled":{"type":"boolean","description":"Whether sample data is included in the context for SQL generation. Default: false"},"stream":{"type":"boolean","description":"If true, streams the response instead of waiting for completion"}},"title":"Request"},"example":{"query":"Get the top 5 customers by total sales","stream":false,"sample_data_enabled":false,"datasets":["sales_data"]}}},"required":true}}
6363
>
6464

6565
</RequestSchema>

website/docs/components/models/xai.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar_label: 'xAI'
55
sidebar_position: 7
66
---
77

8-
To use a language model hosted on xAI, specify `xai` path in the `from` field and the associated `xai_api_key` parameter:
8+
To use a language model hosted on xAI, specify `xai` path in the `from` field and the associated `xai_api_key` parameter. When no model is specified in the `from` field (i.e., `from: xai`), the default model is `grok-4.3`.
99

1010
| Param | Description | Default |
1111
| ----------------- | --------------------------------------------------------- | ------- |
@@ -16,7 +16,7 @@ Example:
1616

1717
```yaml
1818
models:
19-
- from: xai:grok4
19+
- from: xai:grok-4.3
2020
name: xai
2121
params:
2222
xai_api_key: ${secrets:SPICE_GROK_API_KEY}

0 commit comments

Comments
 (0)