ai
ai copied to clipboard
🤖 Provider API update - [email protected]
Breaking changes
-
POST /v1/responses
- Tool call schema change for function calls: removed the
functionobject wrapper and introduced a required top-levelnameproperty alongsidetype: "function". Clients must now send and expect{ type: "function", name: "..." }instead of{ type: "function", function: { name: "..." } }.
- Tool call schema change for function calls: removed the
-
GET /v1/responses/{response_id}
- Response payload tool call schema mirrors the request change: the
functionobject wrapper is removed and replaced by a required top-levelnameproperty.
- Response payload tool call schema mirrors the request change: the
New features
-
POST /v1/chat/completions
- Added support for file attachments in message content parts via a
filefield (OpenAI-compatible nesting) that accepts{ file_id: string }ornull.
- Added support for file attachments in message content parts via a
-
POST /v1/responses
- Added new input variant:
type: "input_file"with{ file_id: string }for providing file inputs via the Files API.
- Added new input variant:
https://github.com/gr2m/ai-provider-monitor/releases/tag/xai%4010.0.0