llmtrim 0.1.8-x86_64-linux → 0.1.9-x86_64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 237c79248620a23758b8905ce7d120e47c01c0bc836c2b3b4fdee3f69d3be730
4
- data.tar.gz: 2718650291447a33d958eb0f873217f32c4483d4337fafbcf9909729133e226e
3
+ metadata.gz: 4613bedf26d33a9102b01fc8804ed41f670138f0b134059dfd7f310661ccf19d
4
+ data.tar.gz: dab66898abc8a901f688f27111cc27df2c9f915476f9b7fdb8831e20c84974b2
5
5
  SHA512:
6
- metadata.gz: 8d408f6326aa2ce3c19c7c08e495710ab6c530bf3566e58f28b834d5552d74dc9fd0e1bc53cf4f82f3d7ce7750ae4a50516afccf0e62fa78c95307befa826ce1
7
- data.tar.gz: 00aca640ee50fe5774ebe00ac8f2101a11647202a13c42148c456087325b9947f22eeb70b8dfea921e31a3894fb242d59431746dfcb81b6fc3e4b03660d3fc1a
6
+ metadata.gz: 81bf16270920c1f022e63eca5c41f23ec854e7a8742ce967dbc0ca6b8c7de3a491d38a51d2d9cfc2d2c1981406f50d8793df65bbb4a384f81418e3d31c5e8ce7
7
+ data.tar.gz: 710ef824dca59b234f27d799f25f823a0f42425bea310d3313bb1650c2cba21eb6f7a0fad608b9ccc6074559ada754aa6566c3c8958e37a492f8a04d0facba77
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # llmtrim (Ruby)
2
2
 
3
3
  Native, in-process bindings to the [llmtrim](https://github.com/fkiene/llmtrim)
4
- compression engine cut LLM input tokens 30–90% with zero extra model calls, no network,
4
+ compression engine, cutting LLM input tokens 30–90% with zero extra model calls, no network,
5
5
  no server. The compiled engine is bundled in the gem, so no Rust toolchain is needed.
6
6
 
7
7
  ```ruby
@@ -15,7 +15,7 @@ puts "#{out.input_tokens_before} -> #{out.input_tokens_after}"
15
15
  # send out.request_json to the provider
16
16
  ```
17
17
 
18
- `compress(input, provider, preset)` `provider` is `Llmtrim::Provider::OPEN_AI` /
18
+ `compress(input, provider, preset)`: `provider` is `Llmtrim::Provider::OPEN_AI` /
19
19
  `ANTHROPIC` / `GOOGLE` or `nil` to auto-detect; `preset` is a workload name
20
20
  (`"aggressive"`, `"agent"`, `"code"`, `"rag"`, `"safe"`, …) or `nil` for the environment
21
21
  config. Raises `Llmtrim::LlmtrimError::Compress` / `UnknownPreset` on error.
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llmtrim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - François Kiene