runapi-core 0.3.0 → 0.3.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 +4 -4
- data/README.md +1 -1
- data/lib/runapi/core/pricing.rb +1 -0
- data/lib/runapi/core/resource_helpers.rb +3 -1
- data/lib/runapi/core/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: d16404092e6b56b65c68e9a2bc73d3b1dd686a7439434c2d7250b92b17068e51
|
|
4
|
+
data.tar.gz: f8442835f9a376a13fb72f3f59c6440a5bfec1fc060c4611305b1e97f85f5255
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df3d5a910d5af119187a0cd3b4764c09fd10f9b6eed1e7cf3b3c71593538ae7f656cdc7fe97c413a24efbff1056b00d367af8c7f17a2af6b58df072c5d1dc008
|
|
7
|
+
data.tar.gz: 9671bd2644931b671609b96fdce9a2982f914a381502b3e88858e3f9de54b05681861f091e7950a875aa385723a5782ec8db1d8087f6edd7a0e482997c97b93a
|
data/README.md
CHANGED
|
@@ -10,7 +10,7 @@ gem install runapi-core
|
|
|
10
10
|
|
|
11
11
|
## Notes
|
|
12
12
|
|
|
13
|
-
Use the core gem for common client options, error classes, request helpers, and task polling behavior that Provider Clients share. Public SDK docs live at https://runapi.ai/docs
|
|
13
|
+
Use the core gem for common client options, error classes, request helpers, and task polling behavior that Provider Clients share. Public SDK docs live at https://runapi.ai/docs/resources/sdks and the model catalog lives at https://runapi.ai/models.
|
|
14
14
|
|
|
15
15
|
## Live Pricing
|
|
16
16
|
|
data/lib/runapi/core/pricing.rb
CHANGED
|
@@ -21,6 +21,7 @@ module RunApi
|
|
|
21
21
|
optional :input_price_per_1m_cents, Numeric
|
|
22
22
|
optional :output_price_per_1m_cents, Numeric
|
|
23
23
|
optional :cache_read_price_per_1m_cents, Numeric
|
|
24
|
+
optional :cache_write_price_per_1m_cents, Numeric
|
|
24
25
|
optional :cache_write_5m_price_per_1m_cents, Numeric
|
|
25
26
|
optional :cache_write_1h_price_per_1m_cents, Numeric
|
|
26
27
|
required :billing_config, Hash
|
|
@@ -149,7 +149,9 @@ module RunApi
|
|
|
149
149
|
|
|
150
150
|
def enum_value_allowed?(enum, value)
|
|
151
151
|
enum.any? do |allowed|
|
|
152
|
-
if allowed
|
|
152
|
+
if allowed == true || allowed == false
|
|
153
|
+
value == allowed
|
|
154
|
+
elsif allowed.is_a?(Numeric)
|
|
153
155
|
value.is_a?(Numeric) && value == allowed
|
|
154
156
|
elsif value.is_a?(Numeric)
|
|
155
157
|
allowed == value
|
data/lib/runapi/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RunAPI
|
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
85
|
version: '0'
|
|
86
86
|
requirements: []
|
|
87
|
-
rubygems_version: 4.0.
|
|
87
|
+
rubygems_version: 4.0.10
|
|
88
88
|
specification_version: 4
|
|
89
89
|
summary: RunAPI Core Ruby SDK
|
|
90
90
|
test_files: []
|