mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
xAI's /v1/responses endpoint does not support the 'include' parameter, returning 400 'Argument not supported: include'. Inline citations are returned automatically when available — no explicit request needed. Closes #12910 Co-authored-by: Luna AI <luna@coredirection.ai>
This commit is contained in:
@@ -473,9 +473,10 @@ async function runGrokSearch(params: {
|
||||
tools: [{ type: "web_search" }],
|
||||
};
|
||||
|
||||
if (params.inlineCitations) {
|
||||
body.include = ["inline_citations"];
|
||||
}
|
||||
// Note: xAI's /v1/responses endpoint does not support the `include`
|
||||
// parameter (returns 400 "Argument not supported: include"). Inline
|
||||
// citations are returned automatically when available — we just parse
|
||||
// them from the response without requesting them explicitly (#12910).
|
||||
|
||||
const res = await fetch(XAI_API_ENDPOINT, {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user