OpenAI API/SDKs compatibility
The Opper OpenAI compatibility layer allows you to use Opper models with the OpenAI API and SDKs. This gives you the ability to use any model provided by Opper in any project that uses the OpenAI API/SDKs.
Opper functionality when using the OpenAI API/SDKs
The OpenAI API/SDKs allows the user to provide extra body to the request. This can be used to work with Opper functionality. The extra body arguments supported are:
fallback_models
: A list of models to use if the primary model is not available.tags
: A dictionary of tags to add to the request.span_uuid
: The UUID of the span to add to the request.evaluate
: Whether to evaluate the generation or not.
It also allows you to provide fallback models in case of failures.