Class: Durable::Llm::Providers::DeepSeek::DeepSeekEmbeddingResponse
- Inherits:
-
Object
- Object
- Durable::Llm::Providers::DeepSeek::DeepSeekEmbeddingResponse
- Defined in:
- lib/durable/llm/providers/deepseek.rb
Overview
Embedding response wrapper for DeepSeek embeddings
Instance Attribute Summary collapse
-
#embedding ⇒ Object
readonly
Returns the value of attribute embedding.
Instance Method Summary collapse
-
#initialize(data) ⇒ DeepSeekEmbeddingResponse
constructor
A new instance of DeepSeekEmbeddingResponse.
- #to_a ⇒ Object
Constructor Details
#initialize(data) ⇒ DeepSeekEmbeddingResponse
Returns a new instance of DeepSeekEmbeddingResponse.
191 192 193 |
# File 'lib/durable/llm/providers/deepseek.rb', line 191 def initialize(data) @embedding = data.dig('data', 0, 'embedding') end |
Instance Attribute Details
#embedding ⇒ Object (readonly)
Returns the value of attribute embedding.
189 190 191 |
# File 'lib/durable/llm/providers/deepseek.rb', line 189 def @embedding end |
Instance Method Details
#to_a ⇒ Object
195 196 197 |
# File 'lib/durable/llm/providers/deepseek.rb', line 195 def to_a @embedding end |