create_request | R Documentation |
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.
create_request(endpoint, host = NULL)
endpoint |
The endpoint to create the request |
host |
The base URL to use. Default is NULL, which uses http://127.0.0.1:11434 |
A httr2 request object.
create_request("/api/tags")
create_request("/api/chat")
create_request("/api/embeddings")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.