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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df786191fe1da5692c4400ec79daea67b246421a0644ffefd4da3d74922ddc9b
4
- data.tar.gz: 3b94ed5743d47eefc64ca36588de03aa2b74b20ecbb2cad711d47ef145d010d5
3
+ metadata.gz: 94bc17db460eba0ae57d26432140f80e6b9d966f9f6d5b00bafabf1390269f16
4
+ data.tar.gz: 180a85f7aab4e81acb09a50c18de4f446e0067d2a559e0ff778a16f404c807ff
5
5
  SHA512:
6
- metadata.gz: d1b0d63b025a623332540715e48ea5abe9afd5d522146c622f5721b13ee5dfa27aae060a2025136a303f50311894a3c8ed6467eca8128353f3ff3afd3d7c95ae
7
- data.tar.gz: 2407bcb8f920e87a6376558e95c2e8235248df624b7f4ae0abc7220aed342c1dfd3376166b5b4e24503ba2a66ec968ea03230be38674e656d398b563dab328dd
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 models.json
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
 
@@ -8,7 +8,7 @@ module LLMSpecs
8
8
 
9
9
  def fetch
10
10
  return read if valid?
11
- yield.tap { write(it) }
11
+ yield.tap { write it }
12
12
  end
13
13
 
14
14
  def valid?
@@ -2,7 +2,7 @@
2
2
  module LLMSpecs
3
3
  class Collection < Array
4
4
  def find(id)
5
- super() { it.id == id } || raise(ModelNotFound.new(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(super(&block))
16
+ self.class.new super(&block)
17
17
  end
18
18
  end
19
19
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module LLMSpecs
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llm_specs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Power