Skip to content

Releases: soukicz/php-llm

0.5.0

06 Nov 12:25

Choose a tag to compare

  • PHP 8.3+ required
  • documentation!
  • renamed LLMChainClient to LLMAgentClient (Original class still exists and is marked as deprecated. No code change, only name changed to better reflect functionality)

0.4.2

23 Sep 07:28

Choose a tag to compare

Improved image support

0.4.1

07 Aug 18:59

Choose a tag to compare

  • added support for OpenAI compatible models (OpenRouter, local models, ...)
  • added support for OpenAI GPT 5

0.4.0

31 Jul 14:05

Choose a tag to compare

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

02 Jun 08:32

Choose a tag to compare

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.

0.2.1

24 May 11:39

Choose a tag to compare

add support for Anthropic Claude 4 Sonnet and Anthropic Claude 4 Opus

0.2.0

06 May 08:51

Choose a tag to compare

Models are refactored to use classes instead of constants. This requires minor change in usage but greatly simplifies handling of cost calculation and multiple releases of same model.

0.1.0

23 Apr 11:26

Choose a tag to compare

remove warning and add licence