Skip to content

v0.50.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Aug 07:19
· 430 commits to main since this release

PromptingTools v0.50.0

Diff since v0.49.0

Breaking Changes

  • AIMessage and DataMessage now have a new field extras to hold any API-specific metadata in a simple dictionary. Change is backward-compatible (defaults to nothing).

Added

  • Added EXPERIMENTAL support for Anthropic's new prompt cache (see ?aigenerate and look for cache kwarg). Note that COST estimate will be wrong (ignores the caching discount for now).
  • Added a new extras field to AIMessage and DataMessage to hold any API-specific metadata in a simple dictionary (eg, used for reporting on the cache hit/miss).

Commits

Merged pull requests:

  • Add experimental prompt cache support for Anthropic (#198) (@svilupp)