alexrudall / ruby-openai

OpenAI API + Ruby! 🤖❤️ NEW: Assistant Vector Stores

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to suppress stdout error logging

key88sf opened this issue · comments

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.

"\033[31mOpenAI HTTP Error (spotted in ruby-openai #{VERSION}): #{msg}\n\033[0m"

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.

commented

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