Skip to main content

Python

LangChain’s ChatOpenAI class accepts a custom base_url, making integration seamless.

With chains

With agents

TypeScript

Agent workflows benefit the most from compression. System prompts, tool schemas, and conversation history all contain significant token waste that OpenCompress removes.