Skip to content
Snippets Groups Projects
Unverified Commit 499829e9 authored by Drini Cami's avatar Drini Cami Committed by GitHub
Browse files

Add documentation for logging openai requests to starter_example.md (#7485)

parent a7edccae
Branches
Tags
No related merge requests found
...@@ -68,6 +68,14 @@ logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout)) ...@@ -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. 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 ### Saving and Loading
By default, data is stored in-memory. By default, data is stored in-memory.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment