ollamar1.2.2 package

'Ollama' Language Models

append_message

Append message to a list

chat

Generate a chat completion with message history

check_option_valid

Check if an option is valid

check_options

Check if a vector of options are valid

copy

Copy a model

create_message

Create a message

create_messages

Create a list of messages

create_request

Create a httr2 request object

create

Create a model from a Modelfile

delete_message

Delete a message in a specified position from a list

delete

Delete a model and its data

embed

Generate embedding for inputs

embeddings

Generate embeddings for a single prompt - deprecated in favor of `embe...

encode_images_in_messages

Encode images in messages to base64 format

generate

Generate a response for a given prompt

get_tool_calls

Get tool calls helper function

image_encode_base64

Read image file and encode it to base64

insert_message

Insert message into a list at a specified position

list_models

List models that are available locally

model_avail

Check if model is available locally

model_options

Model options

ohelp

Chat with a model in real-time in R console

package_config

Package configuration

prepend_message

Prepend message to a list

ps

List models that are currently loaded into memory

pull

Pull/download a model from the Ollama library

push

Push or upload a model to a model library

resp_process_stream

Process httr2 response object for streaming

resp_process

Process httr2 response object

search_options

Search for options based on a query

show

Show model information

stream_handler

Stream handler helper function

test_connection

Test connection to Ollama server

validate_message

Validate a message

validate_messages

Validate a list of messages

validate_options

Validate additional options or parameters provided to the API call

An interface to easily run local language models with 'Ollama' <https://ollama.com> server and API endpoints (see <https://github.com/ollama/ollama/blob/main/docs/api.md> for details). It lets you run open-source large language models locally on your machine.

  • Maintainer: Hause Lin
  • License: MIT + file LICENSE
  • Last published: 2025-01-08