You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These examples would all produce the same Proc that's provided to all Groq::Client instances.
If a Groq::Client.new(&block) was explictly provided, then a warning would be posted that the logger or faraday_middleware configuration is being ignored.
The text was updated successfully, but these errors were encountered:
drnic
changed the title
Allow logger as configuration for all clients
Allow IO/logger/proc as debugging configuration for all clients
Apr 26, 2024
Currently to enable faraday logging to STDOUT, each
Groq::Client
needs a setup like:Perhaps we can have configuration for this, which provides a corresponding
Groq::Client.new(&block)
.Perhaps allow:
an
IO
:a
Logger
:or a
&faraday_middleware
procThese examples would all produce the same
Proc
that's provided to allGroq::Client
instances.If a
Groq::Client.new(&block)
was explictly provided, then a warning would be posted that thelogger
orfaraday_middleware
configuration is being ignored.The text was updated successfully, but these errors were encountered: