Class: LLM::Response::Embedding

Inherits:
LLM::Response show all
Defined in:
lib/llm/response/embedding.rb

Instance Method Summary collapse

Methods inherited from LLM::Response

#body, #initialize

Constructor Details

This class inherits a constructor from LLM::Response

Instance Method Details

#modelObject



5
6
7
# File 'lib/llm/response/embedding.rb', line 5

def model
  parsed[:model]
end

#embeddingsObject



9
10
11
# File 'lib/llm/response/embedding.rb', line 9

def embeddings
  parsed[:embeddings]
end

#total_tokensObject



13
14
15
# File 'lib/llm/response/embedding.rb', line 13

def total_tokens
  parsed[:total_tokens]
end