Skip to content

Commit

Permalink
remove httr dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jhk0530 committed Jun 11, 2024
1 parent a84df58 commit 588cfe5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ importFrom(cli,cli_div)
importFrom(cli,cli_end)
importFrom(cli,cli_status)
importFrom(cli,cli_status_clear)
importFrom(httr,POST)
importFrom(httr,content)
importFrom(httr,content_type_json)
importFrom(httr2,req_body_json)
importFrom(httr2,req_headers)
importFrom(httr2,req_perform)
Expand Down
2 changes: 1 addition & 1 deletion R/gemini.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' setAPI("YOUR_API_KEY")
#' gemini("Explain dplyr's mutate function")
#'
#' @importFrom httr POST content content_type_json
#' @importFrom httr2 request req_url_query req_headers req_body_json req_perform resp_body_json
#' @importFrom cli cli_alert_danger cli_status_clear cli_status
#'
#' @seealso https://ai.google.dev/docs/gemini_api_overview#text_input
Expand Down
2 changes: 1 addition & 1 deletion R/gemini_image.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' gemini_image(image = system.file("docs/reference/figures/image.png", package = "gemini.R"))
#' }
#'
#' @importFrom httr2 request req_url_query req_headers req_body_json req_perform
#' @importFrom httr2 request req_url_query req_headers req_body_json req_perform resp_body_json
#' @importFrom base64enc base64encode
#' @importFrom cli cli_alert_danger cli_status_clear cli_status
#'
Expand Down

0 comments on commit 588cfe5

Please sign in to comment.