Skip to content

Commit

Permalink
return value added. example added
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueline-98 committed Dec 7, 2023
1 parent 57b58df commit 56c09c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions R/setupAgent.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ setupopenaiAgent<-function(model,type=c("chat","completion"),
#' \href{https://platform.openai.com/docs/models/overview}{click here}. For a full list of Replicate models,
#' \href{https://replicate.com/collections/language-models}{click here}.
#' @param ai_api_key personal API key for accessing LLM
#'
#' @return A list holding agent information.
#' @examples
#' \dontrun{
#' myAgent <- setupAgent(name="openai",type="chat",model="gpt-4",ai_api_key=Sys.getenv("AI_API_KEY"))
#' {
#' myAgent <- setupAgent(name="openai",type="chat",model="gpt-4",ai_api_key="my_key")
#'
#' myAgent <- setupAgent(name="replicate",type=NULL,
#' model="02e509c789964a7ea8736978a43525956ef40397be9033abf9fd2badfe68c9e3",
#' ai_api_key=Sys.getenv("AI_API_KEY"))
#' ai_api_key="my_key")
#' }
#' @export

Expand Down
9 changes: 6 additions & 3 deletions man/setupAgent.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 56c09c0

Please sign in to comment.