switchModel method
Switches the model of the current conversation dynamically
modelId
the new model id
It is also possible to switch the model during the conversation
Example:
chat.switchModel(GroqModels.llama3-8b); //use a model id, provided by Groq
Implementation
void switchModel(String modelId) => _model = modelId;