docs - logging langsmith tags

This commit is contained in:
Ishaan Jaff 2024-07-24 07:12:36 -07:00
parent adfd6ab900
commit e378ab8bc9

View file

@ -56,7 +56,7 @@ response = litellm.completion(
``` ```
## Advanced ## Advanced
### Set Custom Project & Run names ### Set Langsmith fields - Custom Projec, Run names, tags
```python ```python
import litellm import litellm
@ -77,6 +77,7 @@ response = litellm.completion(
metadata={ metadata={
"run_name": "litellmRUN", # langsmith run name "run_name": "litellmRUN", # langsmith run name
"project_name": "litellm-completion", # langsmith project name "project_name": "litellm-completion", # langsmith project name
"tags": ["model1", "prod-2"] # tags to log on langsmith
} }
) )
print(response) print(response)