create_request {ollamar}R Documentation

Create a httr2 request object.

Description

Creates a httr2 request object with base URL, headers and endpoint. Used by other functions in the package and not intended to be used directly.

Usage

create_request(endpoint)

Arguments

endpoint

The endpoint to create the request

Value

A httr2 request object.

Examples

create_request("/api/tags")
create_request("/api/chat")
create_request("/api/embeddings")

[Package ollamar version 1.1.1 Index]