How to use silent? #548
-
How do I get the code to stop printing to notebook display/clearing the display? gpt = models.OpenAI("gpt-4", api_key=api_key)
with system():
lm = gpt + system_message |
Beta Was this translation helpful? Give feedback.
Answered by
Harsha-Nori
Dec 19, 2023
Replies: 1 comment 1 reply
-
Apologies, we definitely need to update the documentation here. The best way to suppress all output is to set gpt = models.OpenAI("gpt-4", api_key=api_key, echo=False)
with system():
lm = gpt + system_message |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gagb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apologies, we definitely need to update the documentation here. The best way to suppress all output is to set
echo=False
in the init of the model: