Set the mode of the model used by the workflow.
set_mode.Rdset_mode sets the mode of the model in the workflow. This usually means either 'chat', 'completion' or 'embeddings'.
Details
This sets the mode of the model in the workflow. This usually means either 'chat','completion' or 'embeddings'.
Examples
my_workflow <- ai_workflow() |>
set_model(model_name="llama3:8b-instruct-q5_0") |>
set_mode("chat")