telnyx 5.108.0 → 5.109.0

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: a8427a487bfa74197915aa56d747a736ac818d6707ac0af5e0b9f6271ac94d52
4
- data.tar.gz: fb75a99efcad3b6160a5e7135205c044fa26af64e2b8cc08b8aa298b657f5e0c
3
+ metadata.gz: 0635664beaf5954a5a6aee1fc3c90c1531aea5009a3165877d85f3012cbd68d4
4
+ data.tar.gz: 1814d374ea0f75de957b6e0b57717439184007bfc94c5281fbb424f3239b7d1a
5
5
  SHA512:
6
- metadata.gz: 26ccf3928c4cf1a7ffb1b016cfcdf1623c151e3e684c611f04c9841f64ce51664d7c5b02c80f5489561865b1329078a04d291d4f49e566fc9c95ef36bebc5862
7
- data.tar.gz: 632c8048592cc629dc2a29a32d34ad6a493bae13a8de64dd1b96c6f2a17ad64b83c697b36f1285520e8aef0130b3a2fe54350c275a5c289e052b2cf31a64a22e
6
+ metadata.gz: 4a0adea08fee9b62f04de0b1bb2e193b1a82af840af6774f689008983972a477ba421f440213d843f0c166e5ad46ddfa1bdd38995d6d39322a2f0b63a90ed6e0
7
+ data.tar.gz: c0c7f970f7e64a7384891a14b91fd2ff8e9a8044b424e20354e2211a63cdb74e6bb7723bd3846227d9d2d65c50899d4485c0943688de7c75f44b6869804ecc52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.109.0 (2026-05-11)
4
+
5
+ Full Changelog: [v5.108.0...v5.109.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.108.0...v5.109.0)
6
+
7
+ ### Features
8
+
9
+ * AI-2312: document currency and unit in /models pricing schema ([b430e37](https://github.com/team-telnyx/telnyx-ruby/commit/b430e37b18b56c45ff7ac926e92b569c96800110))
10
+
3
11
  ## 5.108.0 (2026-05-11)
4
12
 
5
13
  Full Changelog: [v5.107.0...v5.108.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.107.0...v5.108.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.108.0"
27
+ gem "telnyx", "~> 5.109.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -112,9 +112,11 @@ module Telnyx
112
112
  optional :parameters_str, String, nil?: true
113
113
 
114
114
  # @!attribute pricing
115
- # Mapping of token kind to price in USD per 1M tokens, as a string. Typical keys
116
- # are `input` and `output`; embedding models expose `embedding`. Empty object when
117
- # pricing is not yet published for the model.
115
+ # Mapping of token kind to price, as strings to preserve precision. Typical keys
116
+ # are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
117
+ # block also includes `currency` (ISO 4217 code matching the account's configured
118
+ # billing currency) and `unit` (the denomination the prices are quoted in,
119
+ # currently always `1M_tokens` for token-priced models).
118
120
  #
119
121
  # @return [Hash{Symbol=>String}, nil]
120
122
  optional :pricing, Telnyx::Internal::Type::HashOf[String]
@@ -182,7 +184,7 @@ module Telnyx
182
184
  #
183
185
  # @param parameters_str [String, nil] Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
184
186
  #
185
- # @param pricing [Hash{Symbol=>String}] Mapping of token kind to price in USD per 1M tokens, as a string. Typical keys a
187
+ # @param pricing [Hash{Symbol=>String}] Mapping of token kind to price, as strings to preserve precision. Typical keys a
186
188
  #
187
189
  # @param recommended_for_assistants [Boolean] Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI A
188
190
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.108.0"
4
+ VERSION = "5.109.0"
5
5
  end
@@ -91,9 +91,11 @@ module Telnyx
91
91
  sig { returns(T.nilable(String)) }
92
92
  attr_accessor :parameters_str
93
93
 
94
- # Mapping of token kind to price in USD per 1M tokens, as a string. Typical keys
95
- # are `input` and `output`; embedding models expose `embedding`. Empty object when
96
- # pricing is not yet published for the model.
94
+ # Mapping of token kind to price, as strings to preserve precision. Typical keys
95
+ # are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
96
+ # block also includes `currency` (ISO 4217 code matching the account's configured
97
+ # billing currency) and `unit` (the denomination the prices are quoted in,
98
+ # currently always `1M_tokens` for token-priced models).
97
99
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
98
100
  attr_reader :pricing
99
101
 
@@ -198,9 +200,11 @@ module Telnyx
198
200
  object: nil,
199
201
  # Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
200
202
  parameters_str: nil,
201
- # Mapping of token kind to price in USD per 1M tokens, as a string. Typical keys
202
- # are `input` and `output`; embedding models expose `embedding`. Empty object when
203
- # pricing is not yet published for the model.
203
+ # Mapping of token kind to price, as strings to preserve precision. Typical keys
204
+ # are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
205
+ # block also includes `currency` (ISO 4217 code matching the account's configured
206
+ # billing currency) and `unit` (the denomination the prices are quoted in,
207
+ # currently always `1M_tokens` for token-priced models).
204
208
  pricing: nil,
205
209
  # Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI
206
210
  # Assistant.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telnyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.108.0
4
+ version: 5.109.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx