Create a model with explicit model ID and optional parameters.
The model identifier (e.g., 'gpt-4'
, 'claude-3-sonnet'
)
Optional
modelParams: TLLMInstanceParamsOptional model parameters (temperature, maxTokens, etc.)
Configured model object
Create a model with parameters object containing model ID.
Model parameters including the required model
field
Configured model object
Model factory functions for each LLM provider.
Supported calling patterns:
Model.provider(modelId, modelParams)
- specify model ID and optional parametersModel.provider(modelParams)
- specify model ID within modelParams object