bandcamp-discover 0.2.1 → 0.2.3
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/lib/bandcamp-discover/analyzer.rb +4 -3
- data/lib/bandcamp-discover/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b686b5e78a3a9a915a9f9b20bbf922b3bba2d3a540445f50c4c0a253fb46e2a6
|
4
|
+
data.tar.gz: 5f635ae41d83978217382ab6ca9ac9023e6b5180bd89e637f495875c2a89f16c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d68c6025aef09fda9c0ae3c85290f81499bbf60939778dbcd2f99ab345484096af8fea62a9bca018df2ff5066c440e1e206db6f3b62d698ae5b81e80d78906e
|
7
|
+
data.tar.gz: 816e48a8b67708bc28dadc7af01abae66c86c61c4824c32e65f528cb2d47082bb6db257e725e64a7849719ce7287ce5f2726f41c66441dc175c0444a8b690004
|
@@ -1,18 +1,19 @@
|
|
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?
|
8
9
|
if defined?(OpenRouter) && !!OpenRouter.configuration.access_token
|
9
10
|
response = OpenRouter::Client.new.complete(
|
10
11
|
[
|
11
|
-
{ role: "system", content: "You are given a description that could or could not be that of a record label. Analyze and answer
|
12
|
+
{ role: "system", content: "You are given a description that could or could not be that of a record label. Analyze and answer witha JSON object {\"answer\": true|false}. Be critical: Individuals and bands are not labels, but collectives can be labels." },
|
12
13
|
{ role: "user", content: @description }
|
13
14
|
],
|
14
15
|
model: [
|
15
|
-
|
16
|
+
@model
|
16
17
|
],
|
17
18
|
extras: {
|
18
19
|
response_format: {
|
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.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian RUbisch
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-08-
|
10
|
+
date: 2025-08-18 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|