Skip to content
Source
Sign inSign up
TanStack/ai

fix(ai-grok): list the provider tools on grok-4.7, grok-4.6, and grok-4.5 #2289 (GitHub #2288)

OpenJaaneek(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/2288/headopened View on GitHub

Showing 7 changed files with 18 additions and 11 deletions (loading 3).

x
0 of 7 viewed, 7 left
5 additions and 0 deletions.changeset/grok-provider-tools-current-models.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/ai-grok': patch
+---
+​
+`grok-4.7`, `grok-4.6`, and `grok-4.5` now accept `grokWebSearchTool`, `grokXSearchTool`, `grokFileSearchTool`, and `grokMCPTool` in `tools`. Before, these calls were a type error on the three models. The request was already correct.
1 addition and 1 deletiondocs/adapters/grok.mdModified
View file
@@ -247,7 +247,7 @@
- `grokFileSearchTool`: search your xAI file collections with `vector_store_ids`. `max_num_results` is 1 to 50.
- `grokMCPTool`: connect a remote MCP server with `server_url` and `server_label`.
​
-**Supported models:** `grok-4.3` and `grok-build-0.1`. For your own tools, use `toolDefinition()`. See [Tools](../tools/tools.md).
+**Supported models:** `grok-4.7`, `grok-4.6`, `grok-4.5`, `grok-4.3`, and `grok-build-0.1`. For your own tools, use `toolDefinition()`. See [Tools](../tools/tools.md).
​
## Models and options
​
12 additions and 10 deletionspackages/ai-grok/src/model-meta.tsModified
View file
@@ -45,6 +45,13 @@
reasoning?: ModelReasoning
​
+const GROK_RESPONSES_TOOLS = [
+ 'web_search',
+ 'x_search',
+ 'file_search',
+ 'mcp',