Skip to main content
The OpenAI Like model works as a wrapper for the OpenAILike models.

Parameters

ParameterTypeDefaultDescription
idstr"gpt-4o"The id of the model to use
namestr"OpenAILike"The name of the model
providerstr"OpenAILike"The provider of the model
api_keyOptional[str]NoneThe API key for authentication (defaults to OPENAI_API_KEY env var)
base_urlstr"https://api.openai.com/v1"The base URL for the API
supports_native_structured_outputsOptional[bool]NoneWhether the model supports native structured outputs
response_formatOptional[str]NoneThe format of the response
seedOptional[int]NoneRandom seed for deterministic sampling
stopOptional[Union[str, List[str]]]NoneUp to 4 sequences where the API will stop generating further tokens
streamboolTrueWhether to stream the response
temperatureOptional[float]NoneControls randomness in the model’s output
top_pOptional[float]NoneControls diversity via nucleus sampling
request_paramsOptional[Dict[str, Any]]NoneAdditional parameters to include in the request
client_paramsOptional[Dict[str, Any]]NoneAdditional parameters for client configuration
I