# v0.10.4 Release Notes

> v0.10.3 -> v0.10.4

## Summary

Grok requests, API key and OAuth alike, can now search X: xAI's server-side `x_search` tool is attached alongside the caller's function tools.

<details>
<summary>翻譯</summary>

Grok 請求（API key 與 OAuth 皆然）可搜尋 X：xAI 伺服器端的 `x_search` 工具會與呼叫端的 function 工具一併附上。

</details>

## Changes

### FEAT

- Add the server-side `x_search` tool for `grok` and `grok-oauth`: when the request declares at least one function tool, `xai.BuildBody` appends `{"type":"x_search"}`; `xai.SupportsXSearch(model)` accepts every `grok-*` model except `imagine` ones, and `xai.BuildBody` gains an `xSearch bool` parameter (@pardnchiu) [4c2e166]

<details>
<summary>翻譯</summary>

- 新增 `grok` 與 `grok-oauth` 的伺服器端 `x_search` 工具：請求宣告至少一個 function 工具時，`xai.BuildBody` 會附加 `{"type":"x_search"}`；`xai.SupportsXSearch(model)` 接受 `imagine` 以外的所有 `grok-*` 模型，`xai.BuildBody` 新增 `xSearch bool` 參數

</details>

## Scope

- `core/xai/` — FEAT (`responses.go`)
- `core/grokOauth/` — FEAT (`send.go`)
- `core/grok/` — FEAT (`send.go`)

---

Generated by [SKILL](https://github.com/pardnchiu/skill-version-generate)
