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
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -380,6 +380,16 @@ Note that requests that time out are [retried twice by default](#retries).
380
380
381
381
## Advanced
382
382
383
+
### Logging
384
+
385
+
We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
386
+
387
+
You can enable logging by setting the environment variable `OPENAI_LOG` to `debug`.
388
+
389
+
```shell
390
+
$ export OPENAI_LOG=debug
391
+
```
392
+
383
393
### How to tell whether `None` means `null` or missing
384
394
385
395
In an API response, a field may be explicitly `null`, or missing entirely; in either case, its value is `None` in this library. You can differentiate the two cases with `.model_fields_set`:
0 commit comments