Skip to content

Commit

Permalink
Fix push function param description
Browse files Browse the repository at this point in the history
  • Loading branch information
hauselin committed Aug 13, 2024
1 parent fa426a3 commit 9499fe3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/ollama.R
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ pull <- function(name, stream = FALSE, insecure = FALSE, endpoint = "/api/pull",
#' @description
#' Push or upload a model to an Ollama model library. Requires registering for ollama.ai and adding a public key first.
#'
#' @param name A character string of the model name to upload, in the form of <namespace>/<model>:<tag>
#' @param name A character string of the model name to upload, in the form of `<namespace>/<model>:<tag>`
#' @param insecure Allow insecure connections. Only use this if you are pushing to your own library during development. Default is FALSE.
#' @param stream Enable response streaming. Default is FALSE.
#' @param output The output format. Default is "resp". Other options are "jsonlist", "raw", "text", and "df".
Expand Down
Binary file removed man/figures/README-pressure-1.png
Binary file not shown.
2 changes: 1 addition & 1 deletion man/push.Rd

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

1 change: 0 additions & 1 deletion tests/testthat/test-chat.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,5 @@ test_that("chat function handles additional options", {

expect_type(result_normal, "character")
expect_type(result_creative, "character")
expect_false(result_normal == result_creative)
expect_error(chat("llama3", messages, output = "text", abc = 2.0))
})

0 comments on commit 9499fe3

Please sign in to comment.