Openai like
datapizza.clients.openai_like.OpenAILikeClient
Bases: Client
A client for interacting with the OpenAI API.
This class provides methods for invoking the OpenAI API to generate responses based on given input data. It extends the Client class.
Key Differences from OpenAIClient
The main difference between OpenAILikeClient and OpenAIClient is the API endpoint they use:
- OpenAILikeClient uses the chat completions API
- OpenAIClient uses the responses API
This makes OpenAILikeClient compatible with services that implement the OpenAI-compatible completions API, such as local models served through Ollama or other providers that follow the OpenAI API specification but only support the completions endpoint.