module RubyLLM::Providers::Azure::Embeddings
Embeddings methods of the Azure AI Foundry API integration
Public Instance Methods
Source
# File lib/ruby_llm/providers/azure/embeddings.rb, line 10 def embedding_url(...) azure_endpoint(:embeddings) end
# File lib/ruby_llm/providers/azure/embeddings.rb, line 14 def render_embedding_payload(text, model:, dimensions:) { model: model, input: [text].flatten, dimensions: dimensions }.compact end