v0.50.0
PromptingTools v0.50.0
Breaking Changes
AIMessage
andDataMessage
now have a new fieldextras
to hold any API-specific metadata in a simple dictionary. Change is backward-compatible (defaults tonothing
).
Added
- Added EXPERIMENTAL support for Anthropic's new prompt cache (see ?
aigenerate
and look forcache
kwarg). Note that COST estimate will be wrong (ignores the caching discount for now). - Added a new
extras
field toAIMessage
andDataMessage
to hold any API-specific metadata in a simple dictionary (eg, used for reporting on the cache hit/miss).
Commits
Merged pull requests: