base_url to https://api.deepseek.com and Phoenix captures each call through openinference-instrumentation-openai.
This page instruments your application’s OpenAI SDK calls to DeepSeek. It does not require a separate DeepSeek-specific OpenInference instrumentor.
Install
Setup
Add your DeepSeek API key from the DeepSeek platform, along with your Phoenix connection details, as environment variables:register function:
Run DeepSeek
Observe
Now that you have tracing set up, all invocations of the OpenAI client pointed at DeepSeek will be streamed to your running Phoenix for observability and evaluation. Each request appears as aChatCompletion LLM span with the prompt, response, model name, token usage, and latency.
Common Issues
- No traces in Phoenix: Confirm
PHOENIX_COLLECTOR_ENDPOINT(andPHOENIX_API_KEYif your Phoenix requires one) is set in the same shell that runs your app - DeepSeek spans missing: Call
register()before you create the OpenAI client, and make sureopeninference-instrumentation-openaiis installed soauto_instrument=Truepicks it up 401from DeepSeek: Use your DeepSeek API key, not your OpenAI key- Model not found: Confirm the model name is available in your DeepSeek account and replace
deepseek-v4-proif needed - Base URL: Ensure you’re using
https://api.deepseek.comas the base URL

