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, useOpenResponses:
previous_response_id chaining.
For specific providers, use the dedicated classes:
- OllamaResponses for Ollama (v0.13.3+)
- OpenRouterResponses for OpenRouter