bandcamp-discover 0.2.0 → 0.2.2

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: a65e9bf97cd9ca459ed51bfebb55d81262de863b6e291187d6b41d004ae2e863
4
- data.tar.gz: b8bd036e56d9276480966cdabb0ef49eda334d325559cd41cde9cf54c3b7e0d8
3
+ metadata.gz: 48deb8b43cc6e29a75585fa85a3ad9d55adb88c62a05212a1d24b34eeefe3878
4
+ data.tar.gz: d3355b56c7039ba07c0ab5fb2a7e86d324dae08425f0306721ebb7edd0b4fb98
5
5
  SHA512:
6
- metadata.gz: c2ef36b3ff546e648f9029da0e42cc4d7fbaced58112156788f30255bbf3ff595448030d827e608fb5ff596d79b3734394de734ca983a6397341a45c6015c1a5
7
- data.tar.gz: 622f759d307cf57357b278c77f2310f1917281a459e6b15856c98811be1926a9344556cf08f4681b80cddc9632239192217d5c67d3184251da001386a25a1bb8
6
+ metadata.gz: b762b3d8806fc5707dfe339c5be56cf29e076ab48da364d57fd99ec4b27e8dfc642c520af8a85e07810ac9631746639e46f676683fae845942d31a73eab5d3a2
7
+ data.tar.gz: 999553f33e0e041dd2562a78ea27d2a7c006cb03b620a5ace7dad05f9c14975dcc83b06d9d3a1fa7ff1f1b3ec957e129f9981bc5edd443eb05c869cf6c4e0b88
@@ -1,7 +1,8 @@
1
1
  module BandcampDiscover
2
2
  class Analyzer
3
- def initialize(description)
3
+ def initialize(description, model = nil)
4
4
  @description = description
5
+ @model = model || "openrouter/auto"
5
6
  end
6
7
 
7
8
  def label?
@@ -12,7 +13,7 @@ module BandcampDiscover
12
13
  { role: "user", content: @description }
13
14
  ],
14
15
  model: [
15
- "mistralai/mistral-small-3.2-24b-instruct:free"
16
+ @model
16
17
  ],
17
18
  extras: {
18
19
  response_format: {
@@ -21,7 +22,7 @@ module BandcampDiscover
21
22
  }
22
23
  )
23
24
 
24
- JSON.parse(response["choices"][0]["message"]["content"])["answer"]&.downcase == "true"
25
+ JSON.parse(response["choices"][0]["message"]["content"])["answer"]&.to_s&.downcase == "true"
25
26
  else
26
27
  @description.match? /label|platform|records/i
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module BandcampDiscover
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bandcamp-discover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian RUbisch
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-08-17 00:00:00.000000000 Z
10
+ date: 2025-08-18 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake