Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

Update README.md for LiteLLM support (#275)

Albert Kim Jr0c071ae5cd72
diff --git a/README.md b/README.md
index 4d076e39..754fb666 100644
--- a/README.md
+++ b/README.md
@@ -212,6 +212,35 @@ agentops.end_session('Success')
</details>
+### LiteLLM
+
+AgentOps provides support for LiteLLM(>=1.3.1), allowing you to call 100+ LLMs using the same Input/Output Format.
+
+- [AgentOps integration example](https://docs.agentops.ai/v1/integrations/litellm)
+- [Official LiteLLM documentation](https://docs.litellm.ai/docs/providers)
+
+<details>
+ <summary>Installation</summary>
+
+```bash
+pip install litellm
+```
+
+```python python
+# Do not use LiteLLM like this
+# from litellm import completion
+# ...
+# response = completion(model="claude-3", messages=messages)
+
+# Use LiteLLM like this
+import litellm
+...
+response = litellm.completion(model="claude-3", messages=messages)
+# or
+response = await litellm.acompletion(model="claude-3", messages=messages)
+```
+</details>
+
### LlamaIndex 🦙
(Coming Soon)
@@ -261,4 +290,4 @@ AgentOps is designed to make agent observability, testing, and monitoring easy.
Check out our growth in the community:
-<img src="https://api.star-history.com/svg?repos=AgentOps-AI/agentops&type=Date" style="max-width: 500px" width="50%" alt="Logo">
\ No newline at end of file
+<img src="https://api.star-history.com/svg?repos=AgentOps-AI/agentops&type=Date" style="max-width: 500px" width="50%" alt="Logo">