From 499829e925e067b4b48579ac94df9771b959851c Mon Sep 17 00:00:00 2001
From: Drini Cami <cdrini@gmail.com>
Date: Wed, 30 Aug 2023 17:53:48 -0400
Subject: [PATCH] Add documentation for logging openai requests to
 starter_example.md (#7485)

---
 docs/getting_started/starter_example.md | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/docs/getting_started/starter_example.md b/docs/getting_started/starter_example.md
index ede9e09127..b4de173267 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.
-- 
GitLab