Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

style: match CI ruff formatting

JerrettDavis8310a495ba84
diff --git a/tests/test_providers/test_universal.py b/tests/test_providers/test_universal.py
index 1b83a678c..5a96800fb 100644
--- a/tests/test_providers/test_universal.py
+++ b/tests/test_providers/test_universal.py
@@ -423,9 +423,11 @@ class TestLiteLLMProvider:
(),
{
"completion_cost": staticmethod(
- lambda **kwargs: 1.23
- if kwargs["model"] == "priced-model"
- else (_ for _ in ()).throw(RuntimeError("missing price"))
+ lambda **kwargs: (
+ 1.23
+ if kwargs["model"] == "priced-model"
+ else (_ for _ in ()).throw(RuntimeError("missing price"))
+ )
)
},
)(),