Create an LLM instance 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.)
LLM instance ready for use
Create an LLM instance with parameters object containing model ID.
Model parameters including the required model
field
LLM instance ready for use
LLM instance factory functions for each LLM provider.
Supported calling patterns:
LLM.provider(modelId, modelParams)
- specify model ID and optional parametersLLM.provider(modelParams)
- specify model ID within modelParams object