Class: Durable::Llm::Providers::DeepSeek::DeepSeekEmbeddingResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/durable/llm/providers/deepseek.rb

Overview

Embedding response wrapper for DeepSeek embeddings

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#embeddingObject (readonly)

Returns the value of attribute embedding.



189
190
191
# File 'lib/durable/llm/providers/deepseek.rb', line 189

def embedding
  @embedding
end

Instance Method Details

#to_aObject



195
196
197
# File 'lib/durable/llm/providers/deepseek.rb', line 195

def to_a
  @embedding
end