telnyx 5.107.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: f3c87a35b668a36283032f0c210a8fba8309fef68279b1da8cacae27ffc24ac5
4
- data.tar.gz: 83f8f6ed052588f6176a1048927c849b32d7bcc2d873b2d1c3fd2f56c79eb11e
3
+ metadata.gz: 0635664beaf5954a5a6aee1fc3c90c1531aea5009a3165877d85f3012cbd68d4
4
+ data.tar.gz: 1814d374ea0f75de957b6e0b57717439184007bfc94c5281fbb424f3239b7d1a
5
5
  SHA512:
6
- metadata.gz: 44551deecd8bd6ab9f8f01e31fac561955de7b73777e9ca38dff8733f3082eba03deb9a63c52e677f4cd5b9b0a57d5bdf21365a2c32710fcc4ae814a29b6e083
7
- data.tar.gz: 4f4618cce72daeeb0a04c73b6c0bfe4e0d776fc922f0b270c6425624622e9c29c4e86bda12e59453e91a403d9cd653ebffd3b3df96bd6f84d10bf61308d5b449
6
+ metadata.gz: 4a0adea08fee9b62f04de0b1bb2e193b1a82af840af6774f689008983972a477ba421f440213d843f0c166e5ad46ddfa1bdd38995d6d39322a2f0b63a90ed6e0
7
+ data.tar.gz: c0c7f970f7e64a7384891a14b91fd2ff8e9a8044b424e20354e2211a63cdb74e6bb7723bd3846227d9d2d65c50899d4485c0943688de7c75f44b6869804ecc52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
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
+
11
+ ## 5.108.0 (2026-05-11)
12
+
13
+ Full Changelog: [v5.107.0...v5.108.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.107.0...v5.108.0)
14
+
15
+ ### Features
16
+
17
+ * Clean up OpenAI responses API docs ([6070668](https://github.com/team-telnyx/telnyx-ruby/commit/6070668c896482ef9c510f7f6c9f94da3556757b))
18
+ * Fix OpenAI chat API reference links ([19300e6](https://github.com/team-telnyx/telnyx-ruby/commit/19300e65a7a6c3df2eb744828217479fd76a89f5))
19
+
3
20
  ## 5.107.0 (2026-05-11)
4
21
 
5
22
  Full Changelog: [v5.106.0...v5.107.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.106.0...v5.107.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.107.0"
27
+ gem "telnyx", "~> 5.109.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -129,7 +129,7 @@ module Telnyx
129
129
 
130
130
  # @!attribute model
131
131
  # ID of the model to use when `external_llm` is not set. You can use the
132
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
132
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
133
133
  # to see available models. If `external_llm` is provided, the assistant uses
134
134
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
135
135
  # provided, Telnyx applies the default model.
@@ -129,7 +129,7 @@ module Telnyx
129
129
 
130
130
  # @!attribute model
131
131
  # ID of the model to use when `external_llm` is not set. You can use the
132
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
132
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
133
133
  # to see available models. If `external_llm` is provided, the assistant uses
134
134
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
135
135
  # provided, Telnyx applies the default model.
@@ -121,7 +121,7 @@ module Telnyx
121
121
 
122
122
  # @!attribute model
123
123
  # ID of the model to use when `external_llm` is not set. You can use the
124
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
124
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
125
125
  # to see available models. If `external_llm` is provided, the assistant uses
126
126
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
127
127
  # provided, Telnyx applies the default model.
@@ -24,7 +24,7 @@ module Telnyx
24
24
 
25
25
  # @!attribute model
26
26
  # ID of the model to use when `external_llm` is not set. You can use the
27
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
27
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
28
28
  # to see available models. If `external_llm` is provided, the assistant uses
29
29
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
30
30
  # provided, Telnyx applies the default model.
@@ -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
  #
@@ -13,7 +13,7 @@ module Telnyx
13
13
  attr_reader :chat
14
14
 
15
15
  # Chat with a language model. This endpoint is consistent with the
16
- # [OpenAI Chat Completions API](https://developers.openai.com/api/reference/resources/responses)
16
+ # [OpenAI Responses API](https://platform.openai.com/docs/api-reference/responses)
17
17
  # and may be used with the OpenAI JS or Python SDK. Response id parameter is not
18
18
  # supported at the moment. Use 'conversation' parameter to leverage persistent
19
19
  # conversations feature.
@@ -46,8 +46,11 @@ module Telnyx
46
46
  # @return [Telnyx::Resources::AI::Tools]
47
47
  attr_reader :tools
48
48
 
49
- # Chat with a language model. This endpoint is consistent with the
50
- # [OpenAI Chat Completions API](https://developers.openai.com/api/reference/resources/responses)
49
+ # @deprecated
50
+ #
51
+ # **Deprecated**: Use `POST /v2/ai/openai/responses` instead. Chat with a language
52
+ # model. This endpoint is consistent with the
53
+ # [OpenAI Responses API](https://platform.openai.com/docs/api-reference/responses)
51
54
  # and may be used with the OpenAI JS or Python SDK. Response id parameter is not
52
55
  # supported at the moment. Use 'conversation' parameter to leverage persistent
53
56
  # conversations feature.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.107.0"
4
+ VERSION = "5.109.0"
5
5
  end
@@ -169,7 +169,7 @@ module Telnyx
169
169
  attr_writer :messaging_settings
170
170
 
171
171
  # ID of the model to use when `external_llm` is not set. You can use the
172
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
172
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
173
173
  # to see available models. If `external_llm` is provided, the assistant uses
174
174
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
175
175
  # provided, Telnyx applies the default model.
@@ -410,7 +410,7 @@ module Telnyx
410
410
  mcp_servers: nil,
411
411
  messaging_settings: nil,
412
412
  # ID of the model to use when `external_llm` is not set. You can use the
413
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
413
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
414
414
  # to see available models. If `external_llm` is provided, the assistant uses
415
415
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
416
416
  # provided, Telnyx applies the default model.
@@ -172,7 +172,7 @@ module Telnyx
172
172
  attr_writer :messaging_settings
173
173
 
174
174
  # ID of the model to use when `external_llm` is not set. You can use the
175
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
175
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
176
176
  # to see available models. If `external_llm` is provided, the assistant uses
177
177
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
178
178
  # provided, Telnyx applies the default model.
@@ -437,7 +437,7 @@ module Telnyx
437
437
  mcp_servers: nil,
438
438
  messaging_settings: nil,
439
439
  # ID of the model to use when `external_llm` is not set. You can use the
440
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
440
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
441
441
  # to see available models. If `external_llm` is provided, the assistant uses
442
442
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
443
443
  # provided, Telnyx applies the default model.
@@ -176,7 +176,7 @@ module Telnyx
176
176
  attr_writer :messaging_settings
177
177
 
178
178
  # ID of the model to use when `external_llm` is not set. You can use the
179
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
179
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
180
180
  # to see available models. If `external_llm` is provided, the assistant uses
181
181
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
182
182
  # provided, Telnyx applies the default model.
@@ -435,7 +435,7 @@ module Telnyx
435
435
  mcp_servers: nil,
436
436
  messaging_settings: nil,
437
437
  # ID of the model to use when `external_llm` is not set. You can use the
438
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
438
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
439
439
  # to see available models. If `external_llm` is provided, the assistant uses
440
440
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
441
441
  # provided, Telnyx applies the default model.
@@ -21,7 +21,7 @@ module Telnyx
21
21
  attr_accessor :instructions
22
22
 
23
23
  # ID of the model to use when `external_llm` is not set. You can use the
24
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
24
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
25
25
  # to see available models. If `external_llm` is provided, the assistant uses
26
26
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
27
27
  # provided, Telnyx applies the default model.
@@ -373,7 +373,7 @@ module Telnyx
373
373
  # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
374
374
  instructions:,
375
375
  # ID of the model to use when `external_llm` is not set. You can use the
376
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
376
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
377
377
  # to see available models. If `external_llm` is provided, the assistant uses
378
378
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
379
379
  # provided, Telnyx applies the default model.
@@ -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.
@@ -146,7 +146,7 @@ module Telnyx
146
146
  messaging_settings: nil,
147
147
  # Body param: ID of the model to use when `external_llm` is not set. You can use
148
148
  # the
149
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
149
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
150
150
  # to see available models. If `external_llm` is provided, the assistant uses
151
151
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
152
152
  # provided, Telnyx applies the default model.
@@ -135,7 +135,7 @@ module Telnyx
135
135
  mcp_servers: nil,
136
136
  messaging_settings: nil,
137
137
  # ID of the model to use when `external_llm` is not set. You can use the
138
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
138
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
139
139
  # to see available models. If `external_llm` is provided, the assistant uses
140
140
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
141
141
  # provided, Telnyx applies the default model.
@@ -298,7 +298,7 @@ module Telnyx
298
298
  mcp_servers: nil,
299
299
  messaging_settings: nil,
300
300
  # ID of the model to use when `external_llm` is not set. You can use the
301
- # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
301
+ # [Get models API](https://developers.telnyx.com/api-reference/openai-chat/get-available-models-openai-compatible)
302
302
  # to see available models. If `external_llm` is provided, the assistant uses
303
303
  # `external_llm` instead of this field. If neither `model` nor `external_llm` is
304
304
  # provided, Telnyx applies the default model.
@@ -13,7 +13,7 @@ module Telnyx
13
13
  attr_reader :chat
14
14
 
15
15
  # Chat with a language model. This endpoint is consistent with the
16
- # [OpenAI Chat Completions API](https://developers.openai.com/api/reference/resources/responses)
16
+ # [OpenAI Responses API](https://platform.openai.com/docs/api-reference/responses)
17
17
  # and may be used with the OpenAI JS or Python SDK. Response id parameter is not
18
18
  # supported at the moment. Use 'conversation' parameter to leverage persistent
19
19
  # conversations feature.
@@ -46,8 +46,9 @@ module Telnyx
46
46
  sig { returns(Telnyx::Resources::AI::Tools) }
47
47
  attr_reader :tools
48
48
 
49
- # Chat with a language model. This endpoint is consistent with the
50
- # [OpenAI Chat Completions API](https://developers.openai.com/api/reference/resources/responses)
49
+ # **Deprecated**: Use `POST /v2/ai/openai/responses` instead. Chat with a language
50
+ # model. This endpoint is consistent with the
51
+ # [OpenAI Responses API](https://platform.openai.com/docs/api-reference/responses)
51
52
  # and may be used with the OpenAI JS or Python SDK. Response id parameter is not
52
53
  # supported at the moment. Use 'conversation' parameter to leverage persistent
53
54
  # conversations feature.
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.107.0
4
+ version: 5.109.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Telnyx