Sha256: 96cbed1cb19ddb084cb8fc27e0244d4561f83b04c855d2db3f7c7ff29b615e1a
Contents?: true
Size: 320 Bytes
Versions: 1
Compression:
Stored size: 320 Bytes
Contents
# frozen_string_literal: true module Ollama module API class Embeddings def initialize(client:) @client = client end def create(model:, prompt:, **options) @client.post "/api/embeddings", json: { model: model, prompt: prompt }.merge(options).compact end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ollama-rb-0.1.0 | lib/ollama/api/embeddings.rb |