forked from phoenix/litellm-mirror
docs - logging langsmith tags
This commit is contained in:
parent
adfd6ab900
commit
e378ab8bc9
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue