setDefaultModel static method
Sets the process-wide default model.
Implementation
static void setDefaultModel(Object model) {
if (model is! String && model is! BaseLlm) {
throw ArgumentError('Default model must be a model name or BaseLlm.');
}
if (model is String && model.isEmpty) {
throw ArgumentError('Default model must be a non-empty string.');
}
_defaultModel = model;
}