Skip to content

docs: update SDK compression response to new API format#143

Merged
SachaMorard merged 3 commits intomainfrom
feat/compression-response
Mar 6, 2026
Merged

docs: update SDK compression response to new API format#143
SachaMorard merged 3 commits intomainfrom
feat/compression-response

Conversation

@SachaMorard
Copy link
Member

Summary

Updates the SDK documentation to reflect the new token compression API response format.

Changes

Compression Object (all 4 SDKs)

  • Removed: input_tokens, rate
  • Added: cost_savings, reduction, time_ms
  • Kept: saved_tokens

Files Updated

  • sdk/python/send.mdx
  • sdk/typescript/send.mdx
  • sdk/go/send.mdx
  • sdk/rust/send.mdx

Made with Cursor

- Replace input_tokens, rate with saved_tokens, cost_savings, reduction, time_ms
- Update Compression Object docs and examples in Python, TypeScript, Go, Rust SDKs

Made-with: Cursor
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 249a2d1777

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SachaMorard SachaMorard merged commit fc934d7 into main Mar 6, 2026
2 checks passed
@SachaMorard SachaMorard deleted the feat/compression-response branch March 6, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant