https://zenn.dev/schroneko/articles/anthropic-token-saving-updates

Anthropic API のトークン最適化によるコスト削減

Anthropic APIのPrompt Cachingにアップデートがあり、読み込みトークンが入力トークンの対象外になりコスト削減がされました。

Prompt Cachingで`cache_control: {type: ephemeral}`の指定が少なくて済むようになり便利になりました。

テキストの特定範囲を編集できる`text_editor`ツールが公開され、デバッグやリファクタリングに活用できます。

Reply to this note

Please Login to reply.

Discussion

No replies yet.