call_llm.together_embedding: Call LLM API for Together AI Embedding Models

View source: R/LLMR.R

call_llm.together_embeddingR Documentation

Call LLM API for Together AI Embedding Models

Description

This function handles embedding requests specifically for Together AI embedding models. It processes text inputs and returns embedding vectors using Together AI's embeddings API.

Usage

## S3 method for class 'together_embedding'
call_llm(config, messages, verbose = FALSE, json = FALSE)

Arguments

config

A configuration object created by llm_config() with provider="together"

messages

Character vector of texts to embed, or list of message objects

verbose

Logical indicating whether to print request details (default: FALSE)

json

Logical indicating whether to return raw JSON response (default: FALSE)

Value

List containing embedding data in standard LLMR format


LLMR documentation built on June 8, 2025, 10:45 a.m.