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, host = NULL)
Arguments
endpoint |
The endpoint to create the request |
host |
The base URL to use. Default is NULL, which uses http://127.0.0.1:11434 |
Value
A httr2 request object.
Examples
create_request("/api/tags")
create_request("/api/chat")
create_request("/api/embeddings")
[Package ollamar version 1.2.1 Index]