OpenAILike
model to access them by replacing the base_url
.
Example
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
id | str | "gpt-4o-mini" | The id of the model to use |
name | str | "OpenAILike" | The name of the model |
provider | str | "OpenAILike" | The provider of the model |
api_key | Optional[str] | None | The API key for the service (defaults to OPENAI_API_KEY env var) |
base_url | Optional[str] | None | The base URL for the API service |
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.