Skip to content

Is it possible to stop the library from printing all the HTTP responses to console? #408

Answered by e4basil
Igrium asked this question in Q&A
Discussion options

You must be logged in to vote

You can add logging parameters to OpenAIConfig to block all logs

  val config = OpenAIConfig(
        token = openAIAPIKey,
        timeout = Timeout(socket = 60.seconds),
        logging = LoggingConfig(logLevel = LogLevel.None)
    )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Igrium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants