Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Index
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Llama Index
Commits
499829e9
Unverified
Commit
499829e9
authored
1 year ago
by
Drini Cami
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation for logging openai requests to starter_example.md (#7485)
parent
a7edccae
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/getting_started/starter_example.md
+8
-0
8 additions, 0 deletions
docs/getting_started/starter_example.md
with
8 additions
and
0 deletions
docs/getting_started/starter_example.md
+
8
−
0
View file @
499829e9
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment