Changelog for claude-1.4.0
1.4.0:
- Expand prompt caching support:
- Add top-level
cache_controlonCreateMessage(automatic caching). - Add
ttlsupport onCacheControlviaCacheTTL. - Add cache-control helpers:
ephemeralCacheWithTTLephemeralCacheWithTTLSecondsephemeralCacheWithTTLDuration
- Add top-level
- Add structured system prompt support:
SystemPrompt(string or blocks)SystemBlockwith per-blockcache_controlsystemText,systemBlocks,systemTextBlock,systemTextBlockCachedCreateMessage.systemandCountTokensRequest.systemnow useMaybe SystemPrompt- breaking:
system = Just someTextVar(wheresomeTextVar :: Text) now needssystem = Just (systemText someTextVar)
- Add tool-level cache control support:
ToolDefinitionvariants now accept optionalcache_control- new helper
withToolCacheControl
1.3.1:
- Remove
advanced-tool-use-2025-11-20beta header requirement — tool search, programmatic tool calling, and code execution are now generally available - Fix flaky PTC test by handling non-deterministic model behavior
1.3.0:
- Add request support for Claude Opus 4.6 routing and speed controls:
inference_geoonCreateMessagespeedonCreateMessagewithSpeedStandard/SpeedFast
- Add context management/compaction request types:
context_managementonCreateMessageContextManagementConfig,ContextManagementEditCompactionTriggerandinputTokensTriggerhelper
- Add live API tests for:
inference_geocontext_managementcompaction (compact-2026-01-12)speed = fast(fast-mode-2026-02-01, including waitlist-gated handling)
1.2.0:
- Add
Thinkingtype withThinkingAdaptiveandThinkingEnabledconstructorsthinkingfield onCreateMessageContentBlock_ThinkingandContentBlock_Redacted_Thinkingresponse blocksContent_ThinkingandContent_Redacted_Thinkingfor replaying thinking in multi-turnDelta_Thinking_DeltaandDelta_Signature_Deltafor streaming
- Add
Model_Context_Window_Exceededconstructor toStopReason
1.1.0:
- Replace
output_formatwithoutput_configonCreateMessage(breaking change)- New
OutputConfigtype witheffortandformatfields effortConfighelper for effort-only configurationjsonSchemaConfighelper for structured output configuration
- New
- Remove beta header requirement for structured outputs (now GA)
1.0.1:
- Add structured outputs support (beta feature
structured-outputs-2025-11-13)OutputFormattype andjsonSchemaFormathelper for JSON outputsoutput_formatfield onCreateMessagestrictfield onToolandstrictFunctionToolhelper for strict tool validationadditionalPropertiesfield onInputSchemaRefusalconstructor forStopReason
- Add
claude-structured-outputs-example
1.0.0:
- Initial release