Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /pydantic_logfire /logfire /_internal /integrations /litellm.py
| from typing import Any | |
| import logfire | |
| try: | |
| from openinference.instrumentation.litellm import LiteLLMInstrumentor | |
| except ImportError: | |
| raise RuntimeError( | |
| 'The `logfire.instrument_litellm()` method ' | |
| 'requires the `openinference-instrumentation-litellm` package.\n' | |
| 'You can install this with:\n' | |
| " pip install 'logfire[litellm]'" | |
| ) | |
| def instrument_litellm(logfire_instance: logfire.Logfire, **kwargs: Any): | |
| LiteLLMInstrumentor().instrument( | |
| tracer_provider=logfire_instance.config.get_tracer_provider(), | |
| **kwargs, | |
| ) | |
Xet Storage Details
- Size:
- 589 Bytes
- Xet hash:
- cfeba544d5e593f42d3ec5276bd055917783bab436c8e536ab5be371d25bd9f1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.