mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
docs(raw_request_prod.md): add seeing raw request / response for proxy on docs
This commit is contained in:
parent
9dfc5419b2
commit
29902b49d4
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