Skip to main content
Many providers support the OpenAI API format. Use the OpenAILike model to access them by replacing the base_url.

Example

Parameters

OpenAILike extends the OpenAI-compatible interface and supports all parameters from OpenAIChat. Simply change the base_url and api_key to point to your preferred OpenAI-compatible service.

Responses API

For providers that implement the Open Responses API specification, use OpenResponses:
The Responses API is stateless by default. Each request is independent with no previous_response_id chaining. For specific providers, use the dedicated classes: See OpenResponses reference for full parameters.