We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c10996 commit 9d7d32bCopy full SHA for 9d7d32b
README.md
@@ -110,11 +110,11 @@ end
110
111
#### Verbose Logging
112
113
-You can pass Faraday connection options to the client in a block, eg. to enable verbose logging:
+You can pass [Faraday middleware](https://lostisland.github.io/faraday/#/middleware/index) to the client in a block, eg. to enable verbose logging:
114
115
```ruby
116
- client = OpenAI::Client.new do |client|
117
- client.response :logger, ::Logger.new(STDOUT), bodies: true
+ client = OpenAI::Client.new do |f|
+ f.response :logger, ::Logger.new(STDOUT), bodies: true
118
end
119
```
120
0 commit comments