Releases: partITech/php-mistral
v0.1.3
🎉 New Features
Added new JSON schemas to the JsonSchema
class that were not supported in the original library:
- Enum
- Const
- Null
- Pattern
- Combinations:
allOf
,anyOf
,oneOf
,not
These additions simplify the creation ofguided_json outputs
To-do : create a documentation on writing more complex output schemas.
v0.1.2
✨ Relax Composer Constraints for Broader Compatibility
Goal
Make the php-mistral
package easier to integrate into modern projects by loosening version constraints that were too restrictive and blocked installation with recent framework stacks.
Changes
-
Lowered minimum PHP version to
>=8.2
(previously>=8.3
) -
Relaxed version constraints on key packages to support a wider ecosystem:
json "symfony/http-client": "^6.3 || ^7.0", "symfony/mime": "^6.3 || ^7.0", "symfony/dotenv": "^6.3 || ^7.0"
-
Replaced unbounded wildcards on virtual packages with stable constraints:
json "psr/http-client-implementation": "^1.0", "psr/http-factory-implementation": "^1.0"
Why
The initial strict constraints were preventing installation in projects using recent versions of popular libraries and frameworks. This update makes php-mistral
more compatible while keeping dependency resolution safe and predictable.
v0.1.1
[0.1.1]
Added
- Support for Multi-Call Prompt (MCP) using
McpConfig
, enabling advanced tool configuration and multiple tool call strategies inchat()
requests. - Full integration with clients:
AnthropicClient
,MistralClient
,OpenAIClient
, and others. - New examples showcasing MCP usage added in the
examples/
directory. - MCP and tool's response are now streamable.
Changed
- Tool injection logic in clients refactored to handle both classic arrays and
McpConfig
objects seamlessly.
v0.1.0
Psr 18 rewritten.
Supports Mistral, vLLM, Ollama, LLama.cpp, TGI, TEI, Huggingface inference provider, anthropic, xai, huggingface datasets.
v0.0.22
What's Changed
- fix nullable type deprecation in MistralClient constructor by @qdurillon-dev in #32
Full Changelog: v0.0.21...v0.0.22
v0.0.21
What's Changed
- cs: remove stray ")" from mistral streamed response example in README by @lbai02 in #30
- Require php >= 8.3 in composer.json by @qdurillon-dev in #31
New Contributors
- @lbai02 made their first contribution in #30
- @qdurillon-dev made their first contribution in #31
Full Changelog: v0.0.20...v0.0.21
v0.0.20
Remove unused dependency (thanks to @lbai02)
Full Changelog: v0.0.19...v0.0.20
v0.0.19
Add compatibility with ollama, Tgi from huggingface inference, vllm.
Add compatibility with json format for ollama/mistral/tgi/vllm.
See examples/Clients for config examples.
v0.0.18
v0.0.17
What's Changed
- enable query to pixtral model by @GeraudBourdin in #24
Full Changelog: v0.0.16...v0.0.17