telnyx 5.106.0 → 5.108.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 +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +1 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +1 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +1 -1
- data/lib/telnyx/models/ai/inference_embedding.rb +1 -1
- data/lib/telnyx/models/ai/openai_create_response_params.rb +22 -0
- data/lib/telnyx/models/ai/openai_create_response_response.rb +10 -0
- data/lib/telnyx/models/ai_create_response_params.rb +20 -0
- data/lib/telnyx/models/ai_create_response_response.rb +8 -0
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/ai/openai.rb +25 -0
- data/lib/telnyx/resources/ai.rb +28 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +4 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +2 -2
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +2 -2
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +2 -2
- data/rbi/telnyx/models/ai/inference_embedding.rbi +2 -2
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +43 -0
- data/rbi/telnyx/models/ai/openai_create_response_response.rbi +13 -0
- data/rbi/telnyx/models/ai_create_response_params.rbi +38 -0
- data/rbi/telnyx/models/ai_create_response_response.rbi +11 -0
- data/rbi/telnyx/models.rbi +2 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -1
- data/rbi/telnyx/resources/ai/assistants.rbi +2 -2
- data/rbi/telnyx/resources/ai/openai.rbi +14 -0
- data/rbi/telnyx/resources/ai.rbi +15 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +26 -0
- data/sig/telnyx/models/ai/openai_create_response_response.rbs +9 -0
- data/sig/telnyx/models/ai_create_response_params.rbs +23 -0
- data/sig/telnyx/models/ai_create_response_response.rbs +7 -0
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/ai/openai.rbs +5 -0
- data/sig/telnyx/resources/ai.rbs +5 -0
- metadata +14 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8427a487bfa74197915aa56d747a736ac818d6707ac0af5e0b9f6271ac94d52
|
|
4
|
+
data.tar.gz: fb75a99efcad3b6160a5e7135205c044fa26af64e2b8cc08b8aa298b657f5e0c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26ccf3928c4cf1a7ffb1b016cfcdf1623c151e3e684c611f04c9841f64ce51664d7c5b02c80f5489561865b1329078a04d291d4f49e566fc9c95ef36bebc5862
|
|
7
|
+
data.tar.gz: 632c8048592cc629dc2a29a32d34ad6a493bae13a8de64dd1b96c6f2a17ad64b83c697b36f1285520e8aef0130b3a2fe54350c275a5c289e052b2cf31a64a22e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.108.0 (2026-05-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.107.0...v5.108.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.107.0...v5.108.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Clean up OpenAI responses API docs ([6070668](https://github.com/team-telnyx/telnyx-ruby/commit/6070668c896482ef9c510f7f6c9f94da3556757b))
|
|
10
|
+
* Fix OpenAI chat API reference links ([19300e6](https://github.com/team-telnyx/telnyx-ruby/commit/19300e65a7a6c3df2eb744828217479fd76a89f5))
|
|
11
|
+
|
|
12
|
+
## 5.107.0 (2026-05-11)
|
|
13
|
+
|
|
14
|
+
Full Changelog: [v5.106.0...v5.107.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.106.0...v5.107.0)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* Responses endpoint ([a65d524](https://github.com/team-telnyx/telnyx-ruby/commit/a65d524c30c758a87dadc4009ec1e999e439590f))
|
|
19
|
+
|
|
3
20
|
## 5.106.0 (2026-05-08)
|
|
4
21
|
|
|
5
22
|
Full Changelog: [v5.105.0...v5.106.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.105.0...v5.106.0)
|
data/README.md
CHANGED
|
@@ -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.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
# @see Telnyx::Resources::AI::OpenAI#create_response
|
|
7
|
+
class OpenAICreateResponseParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute body
|
|
12
|
+
#
|
|
13
|
+
# @return [Hash{Symbol=>Object}]
|
|
14
|
+
required :body, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
15
|
+
|
|
16
|
+
# @!method initialize(body:, request_options: {})
|
|
17
|
+
# @param body [Hash{Symbol=>Object}]
|
|
18
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::AI#create_response
|
|
6
|
+
class AICreateResponseParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute body
|
|
11
|
+
#
|
|
12
|
+
# @return [Hash{Symbol=>Object}]
|
|
13
|
+
required :body, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
|
14
|
+
|
|
15
|
+
# @!method initialize(body:, request_options: {})
|
|
16
|
+
# @param body [Hash{Symbol=>Object}]
|
|
17
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
data/lib/telnyx/models.rb
CHANGED
|
@@ -12,6 +12,31 @@ module Telnyx
|
|
|
12
12
|
# @return [Telnyx::Resources::AI::OpenAI::Chat]
|
|
13
13
|
attr_reader :chat
|
|
14
14
|
|
|
15
|
+
# Chat with a language model. This endpoint is consistent with the
|
|
16
|
+
# [OpenAI Responses API](https://platform.openai.com/docs/api-reference/responses)
|
|
17
|
+
# and may be used with the OpenAI JS or Python SDK. Response id parameter is not
|
|
18
|
+
# supported at the moment. Use 'conversation' parameter to leverage persistent
|
|
19
|
+
# conversations feature.
|
|
20
|
+
#
|
|
21
|
+
# @overload create_response(body:, request_options: {})
|
|
22
|
+
#
|
|
23
|
+
# @param body [Hash{Symbol=>Object}]
|
|
24
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
25
|
+
#
|
|
26
|
+
# @return [Hash{Symbol=>Object}]
|
|
27
|
+
#
|
|
28
|
+
# @see Telnyx::Models::AI::OpenAICreateResponseParams
|
|
29
|
+
def create_response(params)
|
|
30
|
+
parsed, options = Telnyx::AI::OpenAICreateResponseParams.dump_request(params)
|
|
31
|
+
@client.request(
|
|
32
|
+
method: :post,
|
|
33
|
+
path: "ai/openai/responses",
|
|
34
|
+
body: parsed[:body],
|
|
35
|
+
model: Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown],
|
|
36
|
+
options: options
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
15
40
|
# Lists every model currently available to your account on Telnyx Inference,
|
|
16
41
|
# including SOTA open-source LLMs hosted on Telnyx GPUs (for example
|
|
17
42
|
# `moonshotai/Kimi-K2.6`, `zai-org/GLM-5.1-FP8`, and `MiniMaxAI/MiniMax-M2.7`),
|
data/lib/telnyx/resources/ai.rb
CHANGED
|
@@ -46,6 +46,34 @@ module Telnyx
|
|
|
46
46
|
# @return [Telnyx::Resources::AI::Tools]
|
|
47
47
|
attr_reader :tools
|
|
48
48
|
|
|
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)
|
|
54
|
+
# and may be used with the OpenAI JS or Python SDK. Response id parameter is not
|
|
55
|
+
# supported at the moment. Use 'conversation' parameter to leverage persistent
|
|
56
|
+
# conversations feature.
|
|
57
|
+
#
|
|
58
|
+
# @overload create_response(body:, request_options: {})
|
|
59
|
+
#
|
|
60
|
+
# @param body [Hash{Symbol=>Object}]
|
|
61
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
62
|
+
#
|
|
63
|
+
# @return [Hash{Symbol=>Object}]
|
|
64
|
+
#
|
|
65
|
+
# @see Telnyx::Models::AICreateResponseParams
|
|
66
|
+
def create_response(params)
|
|
67
|
+
parsed, options = Telnyx::AICreateResponseParams.dump_request(params)
|
|
68
|
+
@client.request(
|
|
69
|
+
method: :post,
|
|
70
|
+
path: "ai/responses",
|
|
71
|
+
body: parsed[:body],
|
|
72
|
+
model: Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown],
|
|
73
|
+
options: options
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
49
77
|
# @deprecated
|
|
50
78
|
#
|
|
51
79
|
# **Deprecated**: Use `GET /v2/ai/openai/models` instead.
|
data/lib/telnyx/version.rb
CHANGED
data/lib/telnyx.rb
CHANGED
|
@@ -384,6 +384,8 @@ require_relative "telnyx/models/ai/openai/embedding_create_embeddings_params"
|
|
|
384
384
|
require_relative "telnyx/models/ai/openai/embedding_create_embeddings_response"
|
|
385
385
|
require_relative "telnyx/models/ai/openai/embedding_list_embedding_models_params"
|
|
386
386
|
require_relative "telnyx/models/ai/openai/embedding_list_embedding_models_response"
|
|
387
|
+
require_relative "telnyx/models/ai/openai_create_response_params"
|
|
388
|
+
require_relative "telnyx/models/ai/openai_create_response_response"
|
|
387
389
|
require_relative "telnyx/models/ai/openai_list_models_params"
|
|
388
390
|
require_relative "telnyx/models/ai/openai_list_models_response"
|
|
389
391
|
require_relative "telnyx/models/ai/post_conversation_settings"
|
|
@@ -410,6 +412,8 @@ require_relative "telnyx/models/ai/transfer_tool"
|
|
|
410
412
|
require_relative "telnyx/models/ai/voice_settings"
|
|
411
413
|
require_relative "telnyx/models/ai/webhook_tool"
|
|
412
414
|
require_relative "telnyx/models/ai/widget_settings"
|
|
415
|
+
require_relative "telnyx/models/ai_create_response_params"
|
|
416
|
+
require_relative "telnyx/models/ai_create_response_response"
|
|
413
417
|
require_relative "telnyx/models/ai_retrieve_models_params"
|
|
414
418
|
require_relative "telnyx/models/ai_retrieve_models_response"
|
|
415
419
|
require_relative "telnyx/models/ai_summarize_params"
|
|
@@ -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.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
class OpenAICreateResponseParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::AI::OpenAICreateResponseParams,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(T::Hash[Symbol, T.anything]) }
|
|
19
|
+
attr_accessor :body
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
body: T::Hash[Symbol, T.anything],
|
|
24
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(body:, request_options: {})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{
|
|
33
|
+
body: T::Hash[Symbol, T.anything],
|
|
34
|
+
request_options: Telnyx::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
def to_hash
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class AICreateResponseParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::AICreateResponseParams, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(T::Hash[Symbol, T.anything]) }
|
|
15
|
+
attr_accessor :body
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(
|
|
19
|
+
body: T::Hash[Symbol, T.anything],
|
|
20
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
22
|
+
end
|
|
23
|
+
def self.new(body:, request_options: {})
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{
|
|
29
|
+
body: T::Hash[Symbol, T.anything],
|
|
30
|
+
request_options: Telnyx::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
def to_hash
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -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.
|
|
@@ -12,6 +12,20 @@ module Telnyx
|
|
|
12
12
|
sig { returns(Telnyx::Resources::AI::OpenAI::Chat) }
|
|
13
13
|
attr_reader :chat
|
|
14
14
|
|
|
15
|
+
# Chat with a language model. This endpoint is consistent with the
|
|
16
|
+
# [OpenAI Responses API](https://platform.openai.com/docs/api-reference/responses)
|
|
17
|
+
# and may be used with the OpenAI JS or Python SDK. Response id parameter is not
|
|
18
|
+
# supported at the moment. Use 'conversation' parameter to leverage persistent
|
|
19
|
+
# conversations feature.
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
body: T::Hash[Symbol, T.anything],
|
|
23
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
24
|
+
).returns(T::Hash[Symbol, T.anything])
|
|
25
|
+
end
|
|
26
|
+
def create_response(body:, request_options: {})
|
|
27
|
+
end
|
|
28
|
+
|
|
15
29
|
# Lists every model currently available to your account on Telnyx Inference,
|
|
16
30
|
# including SOTA open-source LLMs hosted on Telnyx GPUs (for example
|
|
17
31
|
# `moonshotai/Kimi-K2.6`, `zai-org/GLM-5.1-FP8`, and `MiniMaxAI/MiniMax-M2.7`),
|
data/rbi/telnyx/resources/ai.rbi
CHANGED
|
@@ -46,6 +46,21 @@ module Telnyx
|
|
|
46
46
|
sig { returns(Telnyx::Resources::AI::Tools) }
|
|
47
47
|
attr_reader :tools
|
|
48
48
|
|
|
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)
|
|
52
|
+
# and may be used with the OpenAI JS or Python SDK. Response id parameter is not
|
|
53
|
+
# supported at the moment. Use 'conversation' parameter to leverage persistent
|
|
54
|
+
# conversations feature.
|
|
55
|
+
sig do
|
|
56
|
+
params(
|
|
57
|
+
body: T::Hash[Symbol, T.anything],
|
|
58
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
59
|
+
).returns(T::Hash[Symbol, T.anything])
|
|
60
|
+
end
|
|
61
|
+
def create_response(body:, request_options: {})
|
|
62
|
+
end
|
|
63
|
+
|
|
49
64
|
# **Deprecated**: Use `GET /v2/ai/openai/models` instead.
|
|
50
65
|
#
|
|
51
66
|
# Returns the same `ModelsResponse` payload as the OpenAI-compatible endpoint —
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type openai_create_response_params =
|
|
5
|
+
{ body: ::Hash[Symbol, top] }
|
|
6
|
+
& Telnyx::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class OpenAICreateResponseParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor body: ::Hash[Symbol, top]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
body: ::Hash[Symbol, top],
|
|
16
|
+
?request_options: Telnyx::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
body: ::Hash[Symbol, top],
|
|
21
|
+
request_options: Telnyx::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
type ai_create_response_params =
|
|
4
|
+
{ body: ::Hash[Symbol, top] } & Telnyx::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class AICreateResponseParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor body: ::Hash[Symbol, top]
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
body: ::Hash[Symbol, top],
|
|
14
|
+
?request_options: Telnyx::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
body: ::Hash[Symbol, top],
|
|
19
|
+
request_options: Telnyx::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
data/sig/telnyx/models.rbs
CHANGED
|
@@ -43,6 +43,8 @@ module Telnyx
|
|
|
43
43
|
|
|
44
44
|
module AI = Telnyx::Models::AI
|
|
45
45
|
|
|
46
|
+
class AICreateResponseParams = Telnyx::Models::AICreateResponseParams
|
|
47
|
+
|
|
46
48
|
class AIRetrieveModelsParams = Telnyx::Models::AIRetrieveModelsParams
|
|
47
49
|
|
|
48
50
|
class AISummarizeParams = Telnyx::Models::AISummarizeParams
|
|
@@ -6,6 +6,11 @@ module Telnyx
|
|
|
6
6
|
|
|
7
7
|
attr_reader chat: Telnyx::Resources::AI::OpenAI::Chat
|
|
8
8
|
|
|
9
|
+
def create_response: (
|
|
10
|
+
body: ::Hash[Symbol, top],
|
|
11
|
+
?request_options: Telnyx::request_opts
|
|
12
|
+
) -> Telnyx::Models::AI::openai_create_response_response
|
|
13
|
+
|
|
9
14
|
def list_models: (
|
|
10
15
|
?request_options: Telnyx::request_opts
|
|
11
16
|
) -> Telnyx::Models::AI::OpenAIListModelsResponse
|
data/sig/telnyx/resources/ai.rbs
CHANGED
|
@@ -25,6 +25,11 @@ module Telnyx
|
|
|
25
25
|
|
|
26
26
|
attr_reader tools: Telnyx::Resources::AI::Tools
|
|
27
27
|
|
|
28
|
+
def create_response: (
|
|
29
|
+
body: ::Hash[Symbol, top],
|
|
30
|
+
?request_options: Telnyx::request_opts
|
|
31
|
+
) -> Telnyx::Models::ai_create_response_response
|
|
32
|
+
|
|
28
33
|
def retrieve_models: (
|
|
29
34
|
?request_options: Telnyx::request_opts
|
|
30
35
|
) -> Telnyx::Models::AIRetrieveModelsResponse
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: telnyx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.108.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Telnyx
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -401,6 +401,8 @@ files:
|
|
|
401
401
|
- lib/telnyx/models/ai/openai/embedding_create_embeddings_response.rb
|
|
402
402
|
- lib/telnyx/models/ai/openai/embedding_list_embedding_models_params.rb
|
|
403
403
|
- lib/telnyx/models/ai/openai/embedding_list_embedding_models_response.rb
|
|
404
|
+
- lib/telnyx/models/ai/openai_create_response_params.rb
|
|
405
|
+
- lib/telnyx/models/ai/openai_create_response_response.rb
|
|
404
406
|
- lib/telnyx/models/ai/openai_list_models_params.rb
|
|
405
407
|
- lib/telnyx/models/ai/openai_list_models_response.rb
|
|
406
408
|
- lib/telnyx/models/ai/post_conversation_settings.rb
|
|
@@ -427,6 +429,8 @@ files:
|
|
|
427
429
|
- lib/telnyx/models/ai/voice_settings.rb
|
|
428
430
|
- lib/telnyx/models/ai/webhook_tool.rb
|
|
429
431
|
- lib/telnyx/models/ai/widget_settings.rb
|
|
432
|
+
- lib/telnyx/models/ai_create_response_params.rb
|
|
433
|
+
- lib/telnyx/models/ai_create_response_response.rb
|
|
430
434
|
- lib/telnyx/models/ai_retrieve_models_params.rb
|
|
431
435
|
- lib/telnyx/models/ai_retrieve_models_response.rb
|
|
432
436
|
- lib/telnyx/models/ai_summarize_params.rb
|
|
@@ -3128,6 +3132,8 @@ files:
|
|
|
3128
3132
|
- rbi/telnyx/models/ai/openai/embedding_create_embeddings_response.rbi
|
|
3129
3133
|
- rbi/telnyx/models/ai/openai/embedding_list_embedding_models_params.rbi
|
|
3130
3134
|
- rbi/telnyx/models/ai/openai/embedding_list_embedding_models_response.rbi
|
|
3135
|
+
- rbi/telnyx/models/ai/openai_create_response_params.rbi
|
|
3136
|
+
- rbi/telnyx/models/ai/openai_create_response_response.rbi
|
|
3131
3137
|
- rbi/telnyx/models/ai/openai_list_models_params.rbi
|
|
3132
3138
|
- rbi/telnyx/models/ai/openai_list_models_response.rbi
|
|
3133
3139
|
- rbi/telnyx/models/ai/post_conversation_settings.rbi
|
|
@@ -3154,6 +3160,8 @@ files:
|
|
|
3154
3160
|
- rbi/telnyx/models/ai/voice_settings.rbi
|
|
3155
3161
|
- rbi/telnyx/models/ai/webhook_tool.rbi
|
|
3156
3162
|
- rbi/telnyx/models/ai/widget_settings.rbi
|
|
3163
|
+
- rbi/telnyx/models/ai_create_response_params.rbi
|
|
3164
|
+
- rbi/telnyx/models/ai_create_response_response.rbi
|
|
3157
3165
|
- rbi/telnyx/models/ai_retrieve_models_params.rbi
|
|
3158
3166
|
- rbi/telnyx/models/ai_retrieve_models_response.rbi
|
|
3159
3167
|
- rbi/telnyx/models/ai_summarize_params.rbi
|
|
@@ -5846,6 +5854,8 @@ files:
|
|
|
5846
5854
|
- sig/telnyx/models/ai/openai/embedding_create_embeddings_response.rbs
|
|
5847
5855
|
- sig/telnyx/models/ai/openai/embedding_list_embedding_models_params.rbs
|
|
5848
5856
|
- sig/telnyx/models/ai/openai/embedding_list_embedding_models_response.rbs
|
|
5857
|
+
- sig/telnyx/models/ai/openai_create_response_params.rbs
|
|
5858
|
+
- sig/telnyx/models/ai/openai_create_response_response.rbs
|
|
5849
5859
|
- sig/telnyx/models/ai/openai_list_models_params.rbs
|
|
5850
5860
|
- sig/telnyx/models/ai/openai_list_models_response.rbs
|
|
5851
5861
|
- sig/telnyx/models/ai/post_conversation_settings.rbs
|
|
@@ -5872,6 +5882,8 @@ files:
|
|
|
5872
5882
|
- sig/telnyx/models/ai/voice_settings.rbs
|
|
5873
5883
|
- sig/telnyx/models/ai/webhook_tool.rbs
|
|
5874
5884
|
- sig/telnyx/models/ai/widget_settings.rbs
|
|
5885
|
+
- sig/telnyx/models/ai_create_response_params.rbs
|
|
5886
|
+
- sig/telnyx/models/ai_create_response_response.rbs
|
|
5875
5887
|
- sig/telnyx/models/ai_retrieve_models_params.rbs
|
|
5876
5888
|
- sig/telnyx/models/ai_retrieve_models_response.rbs
|
|
5877
5889
|
- sig/telnyx/models/ai_summarize_params.rbs
|