forked from phoenix/litellm-mirror
docs(raw_request_prod.md): add seeing raw request / response for proxy on docs
This commit is contained in:
parent
2e0dae608a
commit
fb96f07ccb
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,7 @@ import Image from '@theme/IdealImage';
|
||||||
|
|
||||||
See the raw request/response sent by LiteLLM in your logging provider (OTEL/Langfuse/etc.).
|
See the raw request/response sent by LiteLLM in your logging provider (OTEL/Langfuse/etc.).
|
||||||
|
|
||||||
|
**on SDK**
|
||||||
```python
|
```python
|
||||||
# pip install langfuse
|
# pip install langfuse
|
||||||
import litellm
|
import litellm
|
||||||
|
@ -33,6 +34,13 @@ response = litellm.completion(
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**on Proxy**
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
litellm_settings:
|
||||||
|
log_raw_request_response: True
|
||||||
|
```
|
||||||
|
|
||||||
**Expected Log**
|
**Expected Log**
|
||||||
|
|
||||||
<Image img={require('../../img/raw_request_log.png')}/>
|
<Image img={require('../../img/raw_request_log.png')}/>
|
Loading…
Add table
Add a link
Reference in a new issue