Releases: SoftCreatR/php-mistral-ai-sdk
Releases · SoftCreatR/php-mistral-ai-sdk
Release v3.0.1
Fixed
- Audio transcription helpers (sync + streaming) now submit multipart/form-data payloads even when using remote media via
file_url, matching the requirements from the official API docs.
Changed
- Removed the undocumented
audio_url/audio_idaliases; clients must sendfile,file_url, orfile_id, aligning the SDK surface with the server contract.
Full Changelog: v3.0.0...v3.0.1
Release v3.0.0
Added
- Coverage for every endpoint currently documented at docs.mistral.ai/api, including:
- Batch jobs, agents (beta), conversations (beta), knowledge libraries (beta), and the latest moderation/classification APIs.
- Audio transcription helpers (sync + streaming), OCR, file downloads, signed URLs, and knowledge-document utilities.
- Dedicated streaming helpers (
createAudioTranscriptionStream,startConversationStream, etc.) that automatically enable server-sent events.
- Builder metadata describing streaming endpoints so the client can set the correct transport and headers automatically.
- Example scripts for each endpoint, organized under
examples/by resource category.
Changed
MistralAI::__callnow detects whether the target endpoint contains path placeholders, allowing you to pass request payloads as the first argument when no placeholders are needed (the previous two-array pattern still works).- GET/DELETE requests now serialize
$optionsas query parameters instead of sending empty JSON bodies, and streaming calls advertiseAccept: text/event-stream. - Added support for explicit query strings on POST/PATCH endpoints through the reserved
queryoption (automatically mapped to_queryinternally). - Documentation and tests were refreshed to describe the expanded surface area, new helper methods, and the revised calling conventions.
Full Changelog: v2.0.0...v3.0.0
Release v2.0.0
New release for version 2.0.0
Release v1.1.0
New release for version 1.1.0
Release v1.0.0
New release for version 1.0.0