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

[ENHANCEMENT]LiteLLM instrumentor add assistance message when calling OpenAI #5416

Open
arizedatngo opened this issue Nov 18, 2024 · 1 comment
Labels
c/traces enhancement New feature or request triage issues that need triage

Comments

@arizedatngo
Copy link
Contributor

Initialize OpenAI auto-instrumentation

OpenAIInstrumentor().instrument()
session = px.launch_app()
image

configure the Phoenix tracer

tracer_provider = register(
project_name="my-llm-app",
endpoint="https://app.phoenix.arize.com/v1/traces",
)

from openinference.instrumentation.litellm import LiteLLMInstrumentor

LiteLLMInstrumentor().instrument(tracer_provider=tracer_provider)
image

@arizedatngo arizedatngo added enhancement New feature or request triage issues that need triage labels Nov 18, 2024
@github-project-automation github-project-automation bot moved this to 📘 Todo in phoenix Nov 18, 2024
@arizedatngo arizedatngo changed the title [ENHANCEMENT]LiteLLM assistance message when calling OpenAI [ENHANCEMENT]LiteLLM instrumentor add assistance message when calling OpenAI Nov 18, 2024
@dosubot dosubot bot added the c/traces label Nov 18, 2024
@rohanbalkondekar
Copy link

Temporary fix for those who are facing this issue:

If you are using OpenAI with LiteLLM, you can simply use OpenAIInstrumentor instead of LiteLLMInstrumentor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/traces enhancement New feature or request triage issues that need triage
Projects
Status: 📘 Todo
Development

No branches or pull requests

2 participants