=== 測試 x.ai Live Search API === 測試 1:return_citations = true ------------------------------------------------------------ 請求資料: { "model": "grok-4-1-fast-reasoning", "messages": [ { "role": "user", "content": "今天有哪些 NBA 賽事?請用繁體中文簡短回答。" } ], "search_parameters": { "mode": "auto", "return_citations": true } } HTTP 狀態碼: 0 ✗ API 請求失敗 回應: ============================================================ 測試 2:return_citations = false ------------------------------------------------------------ 請求資料: { "model": "grok-4-1-fast-reasoning", "messages": [ { "role": "user", "content": "今天有哪些 NBA 賽事?請用繁體中文簡短回答。" } ], "search_parameters": { "mode": "auto", "return_citations": false } } HTTP 狀態碼: 0 ✗ API 請求失敗 回應: ============================================================ 測試 3:不使用 search_parameters(對照組) ------------------------------------------------------------ 請求資料: { "model": "grok-4-1-fast-reasoning", "messages": [ { "role": "user", "content": "今天有哪些 NBA 賽事?請用繁體中文簡短回答。" } ] } HTTP 狀態碼: 0 ✗ API 請求失敗 回應: ============================================================ === 測試總結 === 結論: 1. return_citations=true:是否影響文字中的 [[數字]](URL)? 2. return_citations=false:是否能移除文字中的 [[數字]](URL)? 3. 如果兩者都有 [[數字]](URL),則 return_citations 只控制 citations 欄位 4. 如果 return_citations=false 能移除文字中的引用,則可以使用此方案 === 測試完成 ===