Skip to content

Commit

Permalink
redundant authenticate()
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Apr 20, 2024
1 parent ef8f30f commit 93a8be3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/chat.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ chat <- function(..., model = "mistral-tiny", error_call = current_env()) {
messages <- as_messages(..., error_call = error_call)

req <- req_chat(messages, model = model, error_call = error_call)
resp <- authenticate(req, error_call = error_call) |>
req_mistral_perform(error_call = error_call)
resp <- req_mistral_perform(error_call = error_call)

data <- resp_body_json(resp)

Expand Down

0 comments on commit 93a8be3

Please sign in to comment.