alexrudall / ruby-openai

OpenAI API + Ruby! 🤖❤️ NEW: Assistant Vector Stores
MIT License
2.61k stars 302 forks source link

Ability to suppress stdout error logging #437

Closed key88sf closed 2 months ago

key88sf commented 3 months ago

Is your feature request related to a problem? Please describe. When OpenAI returns an error, there is always a stdout log message written by the gem. https://github.com/alexrudall/ruby-openai/blob/7666e3084bcc6c10e0fd350224db874d07bbfd55/lib/openai.rb#L30

There doesn't seem to be any way to suppress these.

Describe the solution you'd like A configuration option to NOT write these log messages.

alexrudall commented 2 months ago

Released in v7 - the default will now NOT log errors to stdout, the new log_errors config will reenable if needed