-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to quiet mode #9
Conversation
Not to be merged until |
5cc68b4
to
1611241
Compare
1611241
to
8f42a51
Compare
@@ -14,7 +14,9 @@ NULL | |||
#' not supply this directly, but instead set the `OPENAI_API_KEY` environment | |||
#' variable. | |||
#' @param model The model to use for the chat; defaults to GPT-4o mini. | |||
#' @param quiet If `TRUE` does not print output as its received. | |||
#' @param echo If `TRUE`, the `chat()` method streams the response to stdout by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it only affects chat()
it seems weird to make it a class property to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought so too at first, but for interactive uses (the only place where this will be useful) it seemed annoying to have to remember to do echo=TRUE
every time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I don't feel strongly--happy to take it out if you prefer
quiet = TRUE
toecho = FALSE
echo = FALSE
(i.e. quiet by default)stream
,chat_async
, andstream_async
never echo