diff --git a/docs/getting_started/starter_example.md b/docs/getting_started/starter_example.md index ede9e0912705d4d5a289685cf71319e7d9daafa9..b4de173267fcf10f8781c8c28c618365c3d03b0d 100644 --- a/docs/getting_started/starter_example.md +++ b/docs/getting_started/starter_example.md @@ -68,6 +68,14 @@ logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout)) You can set the level to `DEBUG` for verbose output, or use `level=logging.INFO` for less. +To view all requests made to your LLMs, you can set the `openai` logging flag: + +```python +openai.log = "debug" +``` + +This will print out every request and response made via `openai`. Change it back to `None` to turn off. + ### Saving and Loading By default, data is stored in-memory.