ai icon indicating copy to clipboard operation
ai copied to clipboard

🤖 Provider API update - [email protected]

Open vercel-ai-sdk[bot] opened this issue 2 months ago • 0 comments

Breaking changes

  • POST /v1/responses

    • Tool call schema change for function calls: removed the function object wrapper and introduced a required top-level name property alongside type: "function". Clients must now send and expect { type: "function", name: "..." } instead of { type: "function", function: { name: "..." } }.
  • GET /v1/responses/{response_id}

    • Response payload tool call schema mirrors the request change: the function object wrapper is removed and replaced by a required top-level name property.

New features

  • POST /v1/chat/completions

    • Added support for file attachments in message content parts via a file field (OpenAI-compatible nesting) that accepts { file_id: string } or null.
  • POST /v1/responses

    • Added new input variant: type: "input_file" with { file_id: string } for providing file inputs via the Files API.

https://github.com/gr2m/ai-provider-monitor/releases/tag/xai%4010.0.0

vercel-ai-sdk[bot] avatar Nov 05 '25 04:11 vercel-ai-sdk[bot]