Skip to content

Commit

Permalink
don't include tool_calls in chat response
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHWade committed Mar 14, 2024
1 parent 4084243 commit 98258f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/chat.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ resp_chat <- function(response, error_call = current_env()) {
data <- resp_body_json(response)

tib <- map_dfr(data$choices, \(choice) {
as_tibble(choice$message)
tibble(role = choice$message$role,
content = choice$message$content)
})

class(tib) <- c("chat_tibble", class(tib))
Expand Down

0 comments on commit 98258f6

Please sign in to comment.