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

Support arize phoenix on litellm proxy #7756

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

nate-mar
Copy link

@nate-mar nate-mar commented Jan 14, 2025

Title

Support arize phoenix on litellm proxy

Relevant issues

#7624

Type

πŸ†• New Feature
🧹 Refactoring
πŸ“– Documentation
βœ… Test

Changes

  • added new callback handler for arize phoenix
  • supports arize hosted phoenix by default, but also allows the use of a locally hosted arize phoenix
  • PHOENIX_API_KEY env var is required for arize hosted phoenix, and is optional for locally hosted phoenix if the user chooses to not enable authentication in phoenix.
  • PHOENIX_HTTP_COLLECTOR_ENDPOINT and PHOENIX_COLLECTOR_ENDPOINT env vars are used for http and grpc endpoints respectively. if both are set, the grpc is used, just as in the existing arize callback integration.
  • adds relevant tests for the arize phoenix callback

[REQUIRED] Testing - Attach a screenshot of any new tests passing locally

Screenshot 2025-01-15 at 9 46 52β€―PM

Copy link

vercel bot commented Jan 14, 2025

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 Jan 16, 2025 5:44am


try:

optional_params = kwargs.get("optional_params", {})
Copy link
Author

Choose a reason for hiding this comment

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

Left this mostly unchanged. Will do a follow up PR to add more attributes.

@nate-mar nate-mar marked this pull request as ready for review January 16, 2025 05:43
@nate-mar
Copy link
Author

@krrishdholakia Feel free to take a look and run the integration tests that require keys! Thanks!

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.

1 participant