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

Fix OpenMeter sync logger #3452

Merged
merged 1 commit into from
May 5, 2024
Merged

Conversation

tothandras
Copy link
Contributor

Title

The integration with the SDK wasn't working due to missing JSON body serialization.

Relevant issues

Type

🐛 Bug Fix

Copy link

vercel bot commented May 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 4, 2024 9:14pm

try:
response = self.sync_http_handler.post(
url=_url,
data=json.dumps(_data),
Copy link
Contributor Author

@tothandras tothandras May 4, 2024

Choose a reason for hiding this comment

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

json.dumps and error logging was missing

@krrishdholakia
Copy link
Contributor

Thanks @tothandras

@krrishdholakia krrishdholakia merged commit 47078f4 into BerriAI:main May 5, 2024
2 checks passed
@tothandras tothandras deleted the fix/openmeter branch May 7, 2024 11:35
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.

2 participants