From 93a8be39180999abccae7b88f6f52ef3a50f9723 Mon Sep 17 00:00:00 2001 From: Romain Francois Date: Sat, 20 Apr 2024 13:13:46 +0200 Subject: [PATCH] redundant authenticate() --- R/chat.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/chat.R b/R/chat.R index 9853460..69974a5 100644 --- a/R/chat.R +++ b/R/chat.R @@ -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)