Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instrument litellm #163

Merged
merged 15 commits into from
Apr 26, 2024
Merged

Instrument litellm #163

merged 15 commits into from
Apr 26, 2024

Conversation

HowieG
Copy link
Contributor

@HowieG HowieG commented Apr 25, 2024

📥 Pull Request

📘 Description
Adding override of litellm.completion and litellm.acompletion

🎯 Goal
Give users access to several LLM APIs using the OpenAI format (Bedrock, Huggingface, VertexAI, TogetherAI, Azure, OpenAI, etc.)

🔍 Additional Context
Adding litellm is mutually exclusive to adding openai or any of the other LLM APIs it overrides

🧪 Testing
AgentOps-AI/lead-detective/test_litellm_sync.py
AgentOps-AI/lead-detective/test_litellm_async.py
AgentOps-AI/lead-detective/test_openai_v0.py

Copy link
Contributor

@siyangqiu siyangqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! I left some comments for potential improvements

agentops/__init__.py Outdated Show resolved Hide resolved
agentops/client.py Outdated Show resolved Hide resolved
agentops/llm_tracker.py Outdated Show resolved Hide resolved
agentops/__init__.py Outdated Show resolved Hide resolved
agentops/__init__.py Outdated Show resolved Hide resolved
agentops/__init__.py Show resolved Hide resolved
agentops/llm_tracker.py Show resolved Hide resolved
@HowieG HowieG enabled auto-merge (squash) April 26, 2024 02:15
@HowieG HowieG merged commit bdb7a41 into main Apr 26, 2024
2 checks passed
@HowieG HowieG deleted the eng-142-instrument-litellm branch April 26, 2024 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants