Skip to contents

set_port sets the port related to the API server.

Usage

set_port(workflow_obj, port)

Arguments

workflow_obj

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

port

the port used to access the API server.

Details

Set the IP Address related to the API server.

Examples

wflow <- ai_workflow() |> set_connector("ollama") |> 
set_ip_addr(ip_addr="127.0.0.1") |> set_port(port="11434")
#> → Default IP address has been set to 127.0.0.1.
#> → Default port has been set to 11434.
#> → IP address has been changed to 127.0.0.1.
#> → Port has been changed to 11434.