SalpXXAPI News
Tags

#Claude — Page 2

Integrating and tuning Anthropic's Claude models.

AI News2 min read

Claude’s Preserved Thinking 400: Do Not Replay an Edited Thinking Block

Editing, reordering or truncating preserved-thinking history can invalidate signatures; repeating the request does not help.

Beginner Q&A2 min read

What Is a Token? A Beginner’s Guide to Input, Output and Cost

A token is not a character count; English approximations do not transfer mechanically to Chinese, and history/tools consume budget.

Beginner Q&A2 min read

Context Windows and max_tokens: Why a Short Answer Can Still Overflow

The window includes input, history, tools and output; max_tokens is an output budget, not extra space.

Model Guides3 min read

Caching is not a discount: the real cost structure of Claude and GPT prompt caching

Caching splits a prompt prefix into three prices — normal input, cache write, cache read. You only start saving on the second reuse, and one channel switch on a gateway can reset your hit rate to zero.

Integrations2 min read

Hooking Claude into a gateway: two paths and three traps

Claude's native protocol differs from OpenAI's, but a gateway gives you two doors — the native messages endpoint or the OpenAI-compatible chat/completions. Here is the setup for each, plus the three places people break.

One key for Claude, GPT and 50+ models

The SalpX gateway is OpenAI-SDK compatible. Point base_url at https://www.salpx.com/v1 and you are done.