ollamar (development version)
- Add
ver()function to retrieve Ollama version. - Update
create()function. - Add
last_response()to provide more informative error messages if requests fail.
ollamar 1.2.2
CRAN release: 2025-01-08
-
generate()andchat()support structured output viaformatparameter. -
test_connection()returnshttr2::responseobject by default, but also support returning a logical value. #29 -
chat()supports tool calling viatoolsparameter. Addedget_tool_calls()helper function to process tools. #30 - Simplify README and add Get started vignette with more examples.
ollamar 1.2.1
CRAN release: 2024-08-25
-
generate()andchat()accept multiple images as prompts/messages. - Add functions to validate messages for
chat()function:validate_message(),validate_messages(). - Add
encode_images_in_messages()to encode images in messages forchat()function. - Add
create_messages()to create messages easily. - Helper functions for managing messages accept
...parameter to pass additional options. - Update README and docs to reflect changes.
ollamar 1.2.0
CRAN release: 2024-08-17
- All functions calling API endpoints have
endpointparameter. - All functions calling API endpoints have
...parameter to pass additional model options to the API. - All functions calling API endpoints have
hostparameter to specify the host URL. Default isNULL, which uses the default Ollama URL. - Add
reqas an output format forgenerate()andchat(). - Add new functions for calling APIs:
create(),show(),copy(),delete(),push(),embed()(supercedesembeddings()),ps(). - Add helper functions to manipulate chat/conversation history for
chat()function (or other APIs like OpenAI):create_message(),append_message(),prepend_message(),delete_message(),insert_message(). - Add
ohelp()function to chat with models in real-time. - Add helper functions:
model_avail(),image_encode_base64(),check_option_valid(),check_options(),search_options(),validate_options()
ollamar 1.0.0
- Initial CRAN submission.
New features
- Integrate R with Ollama to run language models locally on your own machine.
- Include
test_connection(logical = TRUE)function to test connection to Ollama server. - Include
list_models()function to list available models. - Include
pull()function to pull a model from Ollama server. - Include
delete()function to delete a model from Ollama server. - Include
chat()function to chat with a model. - Include
generate()function to generate text from a model. - Include
embeddings()function to get embeddings from a model. - Include
resp_process()function to processhttr2_responseobjects.
