ollamar 1.2.2
- generate()and- chat()support structured output
via- formatparameter.
- test_connection()returns- httr2::responseobject by default, but also support returning a logical value. #29
- chat()supports tool calling via- toolsparameter. Added- get_tool_calls()helper
function to process tools. #30
- Simplify README and add Get started vignette with more
examples.
ollamar 1.2.1
- generate()and- chat()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
- 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.1.1
Bug fixes
- Fixed invalid URLs.
- Updated title and description.
ollamar 1.0.0
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.