liter_llm 2.2.0-aarch64-linux → 2.2.4-aarch64-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 +4 -4
- data/README.md +15 -2
- data/lib/liter_llm/version.rb +2 -2
- data/lib/liter_llm_rb.so +2 -2
- data/sig/types.rbs +37 -3
- metadata +7 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5f639aefb840af794beb0d398a24556bc95d393800fc87e4332028472c397df
|
|
4
|
+
data.tar.gz: cd4a0ffa3e896192df9097016ee15f3279a513510bb40d122067a422c7509088
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: adf2fa29cb74760e27317ea80fbecffabb2633e338295ebbc3c8297486959c5f0c089b25bae8420011956618b6ee275105fd436806e4f4001fb6a9cf35fd0fed
|
|
7
|
+
data.tar.gz: 28bf042622e5a9d0a06f0c44ff2deaaea0e15026104c7c8f41927722004b50f67fa6db87f2e471fb0422ec43e2886a3d2b489ffee6de1ca509cbb6fe1b32e60a
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- This file is auto-generated by alef — DO NOT EDIT. -->
|
|
2
|
-
<!-- alef:hash:
|
|
2
|
+
<!-- alef:hash:154fa1709ba05122580121985d5a3051b3782a4376cecb7f50e1641d70a667ca -->
|
|
3
3
|
<!-- To regenerate: alef readme -->
|
|
4
4
|
<!-- To verify freshness: alef verify -->
|
|
5
5
|
|
|
@@ -120,6 +120,19 @@ gem 'liter_llm'
|
|
|
120
120
|
- **Ruby 3.2+** required
|
|
121
121
|
- API keys via environment variables (e.g. `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`)
|
|
122
122
|
|
|
123
|
+
## Coding-agent plugin
|
|
124
|
+
|
|
125
|
+
Install the [liter-llm plugin](https://github.com/xberg-io/liter-llm/blob/main/plugin/README.md)
|
|
126
|
+
for product skills and runtime integrations, or install [public skills](https://github.com/xberg-io/liter-llm/tree/main/skills)
|
|
127
|
+
independently:
|
|
128
|
+
|
|
129
|
+
```sh
|
|
130
|
+
npx skills add xberg-io/liter-llm
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Select the skills and target agents interactively. Install the product CLI separately for
|
|
134
|
+
executable operations; the skill installer adds instructions only.
|
|
135
|
+
|
|
123
136
|
## Quick Start
|
|
124
137
|
|
|
125
138
|
### Basic Chat
|
|
@@ -245,7 +258,7 @@ liter-llm mcp --transport stdio # MCP tool server
|
|
|
245
258
|
docker run -p 4000:4000 -e LITER_LLM_MASTER_KEY=sk-your-key ghcr.io/xberg-io/liter-llm
|
|
246
259
|
```
|
|
247
260
|
|
|
248
|
-
To use the MCP server inside a coding agent, install the **liter-llm plugin** from the [`xberg-io/
|
|
261
|
+
To use the MCP server inside a coding agent, install the **liter-llm plugin** from the [`xberg-io/liter-llm`](https://github.com/xberg-io/liter-llm) marketplace — it auto-registers the server. See the [MCP server](https://docs.liter-llm.xberg.io/server/mcp-server/) and [proxy server](https://docs.liter-llm.xberg.io/server/proxy-server/) guides for configuration, CLI usage, and agent integration.
|
|
249
262
|
|
|
250
263
|
</details>
|
|
251
264
|
|
data/lib/liter_llm/version.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:21470cfde7d6d0facee77f16c9775f94278c36c8db4f433c0e2285995e8809e1
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module LiterLlm
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "2.2.
|
|
9
|
+
VERSION = "2.2.4"
|
|
10
10
|
end
|
data/lib/liter_llm_rb.so
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: data/lib/liter_llm_rb.so
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 36643592 bytes
|
|
4
|
+
sha256: 4b0dc47c79b6bddad4c371d70e6441feb9b5381b44bbcd84a7195d38d36d92ed
|
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:424dd8b9d3e3891415d6de9d838e00ab814f2e2c14a31d9dca8f567fa8901e80
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
@@ -109,6 +109,17 @@ module LiterLlm
|
|
|
109
109
|
def initialize: (?max_entries: Integer, ?ttl: Integer, ?backend: CacheBackend) -> void
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
+
class CatalogInfo
|
|
113
|
+
attr_reader source: String
|
|
114
|
+
attr_reader source_sha256: String
|
|
115
|
+
attr_reader fetched: String
|
|
116
|
+
attr_reader library_version: String
|
|
117
|
+
attr_reader schema_version: Integer
|
|
118
|
+
attr_reader origin: String
|
|
119
|
+
|
|
120
|
+
def initialize: (?source: String, ?source_sha256: String, ?fetched: String, ?library_version: String, ?schema_version: Integer, ?origin: String) -> void
|
|
121
|
+
end
|
|
122
|
+
|
|
112
123
|
class CatalogRefreshConfig
|
|
113
124
|
attr_reader enabled: bool
|
|
114
125
|
attr_reader source_url: String
|
|
@@ -195,6 +206,17 @@ module LiterLlm
|
|
|
195
206
|
def initialize: (?index: Integer, ?message: AssistantMessage, ?finish_reason: enum_FinishReason, ?logprobs: String) -> void
|
|
196
207
|
end
|
|
197
208
|
|
|
209
|
+
class ClientOptions
|
|
210
|
+
attr_reader api_key: String
|
|
211
|
+
attr_reader base_url: String?
|
|
212
|
+
attr_reader timeout_secs: Integer?
|
|
213
|
+
attr_reader max_retries: Integer?
|
|
214
|
+
attr_reader max_response_bytes: Integer?
|
|
215
|
+
attr_reader model_hint: String?
|
|
216
|
+
|
|
217
|
+
def initialize: (?api_key: String, ?base_url: String, ?timeout_secs: Integer, ?max_retries: Integer, ?max_response_bytes: Integer, ?model_hint: String) -> void
|
|
218
|
+
end
|
|
219
|
+
|
|
198
220
|
class CompletionTokensDetails
|
|
199
221
|
attr_reader reasoning_tokens: Integer
|
|
200
222
|
|
|
@@ -520,6 +542,9 @@ module LiterLlm
|
|
|
520
542
|
end
|
|
521
543
|
|
|
522
544
|
class ModelInfo
|
|
545
|
+
attr_reader matched_key: String
|
|
546
|
+
attr_reader exact: bool
|
|
547
|
+
attr_reader price_known: bool
|
|
523
548
|
attr_reader input_cost_per_token: Float
|
|
524
549
|
attr_reader output_cost_per_token: Float
|
|
525
550
|
attr_reader cache_read_input_token_cost: Float?
|
|
@@ -540,7 +565,7 @@ module LiterLlm
|
|
|
540
565
|
attr_reader supports_prompt_caching: bool?
|
|
541
566
|
attr_reader tiers: Array[ModelTier]
|
|
542
567
|
|
|
543
|
-
def initialize: (?input_cost_per_token: Float, ?output_cost_per_token: Float, ?cache_read_input_token_cost: Float, ?cache_creation_input_token_cost: Float, ?input_cost_per_audio_token: Float, ?output_cost_per_audio_token: Float, ?output_cost_per_reasoning_token: Float, ?max_tokens: Integer, ?max_input_tokens: Integer, ?max_output_tokens: Integer, ?mode: String, ?supports_vision: bool, ?supports_function_calling: bool, ?supports_reasoning: bool, ?supports_structured_output: bool, ?supports_audio_input: bool, ?supports_audio_output: bool, ?supports_prompt_caching: bool, ?tiers: Array[ModelTier]) -> void
|
|
568
|
+
def initialize: (?matched_key: String, ?exact: bool, ?price_known: bool, ?input_cost_per_token: Float, ?output_cost_per_token: Float, ?cache_read_input_token_cost: Float, ?cache_creation_input_token_cost: Float, ?input_cost_per_audio_token: Float, ?output_cost_per_audio_token: Float, ?output_cost_per_reasoning_token: Float, ?max_tokens: Integer, ?max_input_tokens: Integer, ?max_output_tokens: Integer, ?mode: String, ?supports_vision: bool, ?supports_function_calling: bool, ?supports_reasoning: bool, ?supports_structured_output: bool, ?supports_audio_input: bool, ?supports_audio_output: bool, ?supports_prompt_caching: bool, ?tiers: Array[ModelTier]) -> void
|
|
544
569
|
end
|
|
545
570
|
|
|
546
571
|
class ModelObject
|
|
@@ -669,9 +694,10 @@ module LiterLlm
|
|
|
669
694
|
|
|
670
695
|
class PromptTokensDetails
|
|
671
696
|
attr_reader cached_tokens: Integer
|
|
697
|
+
attr_reader cache_creation_tokens: Integer
|
|
672
698
|
attr_reader audio_tokens: Integer
|
|
673
699
|
|
|
674
|
-
def initialize: (?cached_tokens: Integer, ?audio_tokens: Integer) -> void
|
|
700
|
+
def initialize: (?cached_tokens: Integer, ?cache_creation_tokens: Integer, ?audio_tokens: Integer) -> void
|
|
675
701
|
end
|
|
676
702
|
|
|
677
703
|
class ProviderCapabilities
|
|
@@ -1008,6 +1034,8 @@ module LiterLlm
|
|
|
1008
1034
|
|
|
1009
1035
|
def self.capabilities: (String provider_name) -> ProviderCapabilities
|
|
1010
1036
|
|
|
1037
|
+
def self.catalog_info: () -> CatalogInfo?
|
|
1038
|
+
|
|
1011
1039
|
def self.check_bound: (String context, Integer current_len, Integer incoming, Integer limit) -> void
|
|
1012
1040
|
|
|
1013
1041
|
def self.clear: () -> void
|
|
@@ -1018,6 +1046,8 @@ module LiterLlm
|
|
|
1018
1046
|
|
|
1019
1047
|
def self.completion_cost_with_cache: (String model, Integer prompt_tokens, Integer cached_tokens, Integer completion_tokens) -> Float?
|
|
1020
1048
|
|
|
1049
|
+
def self.completion_cost_with_cache_details: (String model, Integer prompt_tokens, Integer cached_tokens, Integer cache_creation_tokens, Integer completion_tokens) -> Float?
|
|
1050
|
+
|
|
1021
1051
|
def self.complex_provider_names: () -> Array[String]
|
|
1022
1052
|
|
|
1023
1053
|
def self.count_request_tokens: (String model, ChatCompletionRequest req) -> Integer
|
|
@@ -1028,12 +1058,16 @@ module LiterLlm
|
|
|
1028
1058
|
|
|
1029
1059
|
def self.create_client_from_json: (String json) -> DefaultClient
|
|
1030
1060
|
|
|
1061
|
+
def self.create_client_with_options: (ClientOptions options) -> DefaultClient
|
|
1062
|
+
|
|
1031
1063
|
def self.decode_data_url: (String url) -> DecodedDataUrl?
|
|
1032
1064
|
|
|
1033
1065
|
def self.encode_data_url: (String bytes, ?String mime) -> String
|
|
1034
1066
|
|
|
1035
1067
|
def self.ensure_crypto_provider: () -> void
|
|
1036
1068
|
|
|
1069
|
+
def self.exact_model_info: (String model) -> ModelInfo?
|
|
1070
|
+
|
|
1037
1071
|
def self.install_catalog_overlay_from_str: (String catalog_json) -> void
|
|
1038
1072
|
|
|
1039
1073
|
def self.model_info: (String model) -> ModelInfo?
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: liter_llm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.4
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Na'aman Hirschfeld
|
|
8
|
+
- Tobias Perlstein
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
12
|
+
date: 2026-10-15 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: sorbet-runtime
|
|
@@ -16,16 +17,18 @@ dependencies:
|
|
|
16
17
|
requirements:
|
|
17
18
|
- - "~>"
|
|
18
19
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
20
|
+
version: '0.6'
|
|
20
21
|
type: :runtime
|
|
21
22
|
prerelease: false
|
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
24
|
requirements:
|
|
24
25
|
- - "~>"
|
|
25
26
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.
|
|
27
|
+
version: '0.6'
|
|
27
28
|
description: Universal LLM API client with Rust-powered polyglot bindings.
|
|
28
29
|
email:
|
|
30
|
+
- naaman@xberg.io
|
|
31
|
+
- tobias@xberg.io
|
|
29
32
|
executables: []
|
|
30
33
|
extensions: []
|
|
31
34
|
extra_rdoc_files: []
|