llm_specs 0.1.6 → 0.1.7
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 +1 -1
- data/lib/llm_specs/cache.rb +1 -1
- data/lib/llm_specs/collection.rb +2 -2
- data/lib/llm_specs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94bc17db460eba0ae57d26432140f80e6b9d966f9f6d5b00bafabf1390269f16
|
4
|
+
data.tar.gz: 180a85f7aab4e81acb09a50c18de4f446e0067d2a559e0ff778a16f404c807ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b84d7ecddcea54b697f20d898bfcc8a3ba18efa2195381a18347919bb55a1a7c22da048fa45abc8086a8b94f400c4aadd6eb41be58fb8a8eff8586b99ea91b3
|
7
|
+
data.tar.gz: 898b8bb26b823e0034b6470ac6257b7b34ded0f1b5aa743183f06fc5a2fc0d6d11e5851dce8a922e396e1ba3029c5529bd67278bffff31a7860d416b13aa3368
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ It provides a simple, efficient way to access model metadata with built-in cachi
|
|
7
7
|
## Features
|
8
8
|
|
9
9
|
- Fetches LLM specs from: https://api.parsera.org/v1/llm-specs
|
10
|
-
- Caches results locally to
|
10
|
+
- Caches results locally to llm-specs.json
|
11
11
|
- Provides a queryable catalog of models via .models
|
12
12
|
- Supports filtering and lookup by model attributes
|
13
13
|
|
data/lib/llm_specs/cache.rb
CHANGED
data/lib/llm_specs/collection.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
module LLMSpecs
|
3
3
|
class Collection < Array
|
4
4
|
def find(id)
|
5
|
-
super() { it.id == id }
|
5
|
+
super() { it.id == id } or raise ModelNotFound.new(id)
|
6
6
|
end
|
7
7
|
|
8
8
|
def where(**criteria)
|
@@ -13,7 +13,7 @@ module LLMSpecs
|
|
13
13
|
|
14
14
|
%i[select reject filter].each do |method|
|
15
15
|
define_method(method) do |&block|
|
16
|
-
self.class.new
|
16
|
+
self.class.new super(&block)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/lib/llm_specs/version.rb
CHANGED