Releases: soukicz/php-llm
0.5.0
0.4.2
0.4.1
0.4.0
BC break: Token handling support (continuationCallback) is removed. This feature was relevant with older models with low response limit. Current models with higher limits and great tool support don't really need this and it was creating edge-cases
New features
- message support "error" attribute to indicate error response. This is useful in tool response to explicitly mark error message from content and is supported by Anthropic
- conversation has thread ID - useful for logging
- images are displayed in markdown log
- new Gemini models
Bug fixes
- feedbackCallback is handling tools properly
- http request auto retry supports more status codes
- stop_sequence handling with Anthropic client
0.3.0
BC break: Conversations are now using LLMMessageContents class instead of array of messages (this change improves type validation and allows for unification of content handling between conversations and tools)
BC break: Tools must return LLMMessageContents or PromiseInterface that resolves to LLMMessageContents (existing code needs to change result wrapper with no other changes needed)
New features
multimodal tool support
Tool can return image, multiple images, combinations of text and other content, etc.
text editor tool
Text editor tools uses native support on Anthropic and fallbacks to normal tool on other providers.
Supports editing directly on filesystem or in memory or custom storage implementation.