Integrate with OpenAI
=====================
.. note::
**Problem-solving guide for OpenAI integration**
This guide helps you solve specific problems when integrating HoneyHive with OpenAI, with support for multiple instrumentor options.
This guide covers OpenAI integration with HoneyHive's BYOI architecture, supporting both OpenInference and Traceloop instrumentors.
Compatibility
-------------
**Problem**: I need to know if my Python version and OpenAI SDK version are compatible with HoneyHive.
**Solution**: Check the compatibility information below before installation.
Python Version Support
^^^^^^^^^^^^^^^^^^^^^^
.. list-table::
:header-rows: 1
:widths: 30 70
* - Support Level
- Python Versions
* - Fully Supported
- 3.11, 3.12, 3.13
* - Not Supported
- 3.10 and below
Provider SDK Requirements
^^^^^^^^^^^^^^^^^^^^^^^^^
- **Minimum**: openai >= 1.0.0
- **Recommended**: openai >= 1.10.0
- **Tested Versions**: 1.10.0, 1.11.0, 1.12.0, 1.13.0
Instrumentor Compatibility
^^^^^^^^^^^^^^^^^^^^^^^^^^
.. list-table::
:header-rows: 1
:widths: 30 20 50
* - Instrumentor
- Status
- Notes
* - OpenInference
- Fully Supported
- All features available including streaming and function calling
* - Traceloop
- Fully Supported
- Enhanced metrics, cost tracking, and token usage analysis
Known Limitations
^^^^^^^^^^^^^^^^^
- **Streaming**: Requires manual span finalization for proper trace completion
- **Batch API**: Limited instrumentor support, manual tracing recommended
- **Function Calling**: Fully supported with both instrumentors
- **Vision API**: Supported in OpenAI SDK >= 1.11.0, traced automatically
.. note::
For the complete compatibility matrix across all providers, see :doc:`/how-to/integrations/multi-provider`.
Choose Your Instrumentor
------------------------
**Problem**: I need to choose between OpenInference and Traceloop for OpenAI integration.
**Solution**: Choose the instrumentor that best fits your needs:
- **OpenInference**: Open-source, lightweight, great for getting started
- **Traceloop**: Enhanced LLM metrics, cost tracking, production optimizations
.. raw:: html