Class: Durable::Llm::Providers::AzureOpenai::AzureOpenaiEmbeddingResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::AzureOpenai::AzureOpenaiEmbeddingResponse
- Defined in:
- lib/durable/llm/providers/azure_openai.rb
Overview
Embedding response wrapper for Azure OpenAI embedding API
Instance Attribute Summary collapse
-
#embedding ⇒ Object
readonly
Returns the value of attribute embedding.
Instance Method Summary collapse
-
#initialize(data) ⇒ AzureOpenaiEmbeddingResponse
constructor
A new instance of AzureOpenaiEmbeddingResponse.
- #to_a ⇒ Object
Constructor Details
#initialize(data) ⇒ AzureOpenaiEmbeddingResponse
Returns a new instance of AzureOpenaiEmbeddingResponse.
305 306 307 |
# File 'lib/durable/llm/providers/azure_openai.rb', line 305 def initialize(data) = data.dig('data', 0, 'embedding') end |
Instance Attribute Details
#embedding ⇒ Object (readonly)
Returns the value of attribute embedding.
303 304 305 |
# File 'lib/durable/llm/providers/azure_openai.rb', line 303 def end |
Instance Method Details
#to_a ⇒ Object
309 310 311 |
# File 'lib/durable/llm/providers/azure_openai.rb', line 309 def to_a end |