whitebox 0.1.0 → 0.1.1
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/whitebox/client.rb +9 -8
- data/lib/whitebox/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: 3e315aaa1e4c3687b573b841314259b4602a9a20a4b476375f825c76634c1a3c
|
|
4
|
+
data.tar.gz: b8db422453ff1afb3b1d727702a59bd4af7a8747e68a33094f24907a95c3bec6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dce059770a6d71800e94e4489d33c48255cfb24b3c0655bcde66dfd46b2320181c08013f478f8abef19f4e5f0a89a85e9fee99548e366b38e49f5a2f060f8a99
|
|
7
|
+
data.tar.gz: 22a0a345f05b802178279e0c9b77afe1dc0872f2ff1f080b77d54be60b7860b8b83340ebccc91dd5b5335ef7974afcf977344a31f0b028a826a587e2f7f96f21
|
data/lib/whitebox/client.rb
CHANGED
|
@@ -21,7 +21,7 @@ module Whitebox
|
|
|
21
21
|
runs: runs,
|
|
22
22
|
threshold: threshold,
|
|
23
23
|
sync: sync,
|
|
24
|
-
mode: mode
|
|
24
|
+
mode: mode
|
|
25
25
|
}
|
|
26
26
|
body[:models] = models if models
|
|
27
27
|
|
|
@@ -42,7 +42,7 @@ module Whitebox
|
|
|
42
42
|
options: options,
|
|
43
43
|
runs: runs,
|
|
44
44
|
threshold: threshold,
|
|
45
|
-
webhook_url: webhook_url
|
|
45
|
+
webhook_url: webhook_url
|
|
46
46
|
}.compact
|
|
47
47
|
|
|
48
48
|
data = request(:post, "/decide/bulk", body)
|
|
@@ -85,9 +85,10 @@ module Whitebox
|
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
# List supported models
|
|
88
|
-
def
|
|
88
|
+
def list_models
|
|
89
89
|
request(:get, "/models")
|
|
90
90
|
end
|
|
91
|
+
alias_method :models, :list_models
|
|
91
92
|
|
|
92
93
|
private
|
|
93
94
|
|
|
@@ -100,11 +101,11 @@ module Whitebox
|
|
|
100
101
|
http.open_timeout = 10
|
|
101
102
|
|
|
102
103
|
req = case method
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
when :get then Net::HTTP::Get.new(uri)
|
|
105
|
+
when :post then Net::HTTP::Post.new(uri)
|
|
106
|
+
when :patch then Net::HTTP::Patch.new(uri)
|
|
107
|
+
when :delete then Net::HTTP::Delete.new(uri)
|
|
108
|
+
end
|
|
108
109
|
|
|
109
110
|
req["Authorization"] = "Bearer #{@api_key}"
|
|
110
111
|
req["Content-Type"] = "application/json"
|
data/lib/whitebox/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whitebox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WhiteBox
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Run every AI classification through multiple models. Measure agreement.
|
|
14
14
|
Ship with confidence or escalate to a human.
|