Skip to contents

set_connector sets the connector type expected for the server calls. This can for example be an Ollama server or a Llama.cpp server.

Usage

set_connector(workflow_obj, connector)

Arguments

workflow_obj

an ai_workflow object created by ai_workflow() in the first place.

connector

the name of the connector type to use. It can be either ollama or llamacpp (to be taken care of in later versions).

Details

Set the connector required to operate the workflow. A connector is a server that will be reached by an API. It can either be a local or a remote server.

Examples

my_workflow <- ai_workflow() |> 
set_connector(connector="ollama")
#> → Default IP address has been set to 127.0.0.1.
#> → Default port has been set to 11434.