Skip to contents

set_ip_addr sets the IP Address related to the API server.

Usage

set_ip_addr(workflow_obj, ip_addr)

Arguments

workflow_obj

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

ip_addr

IP address of the 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")
#> → 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.
wflow <- ai_workflow() |> set_connector("ollama") |> 
set_ip_addr(ip_addr="192.168.1.56")
#> → Default IP address has been set to 127.0.0.1.
#> → Default port has been set to 11434.
#> → IP address has been changed to 192.168.1.56.