modellist: fix bad copy-paste in ModelList::clone (#2011)

s/contextLength/gpuLayers/

Fixes #2010

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
pull/1973/head^2
Jared Van Bortel 6 months ago committed by GitHub
parent 007d469034
commit fc1a281381
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -818,7 +818,7 @@ QString ModelList::clone(const ModelInfo &model)
updateData(id, ModelList::MaxLengthRole, model.maxLength());
updateData(id, ModelList::PromptBatchSizeRole, model.promptBatchSize());
updateData(id, ModelList::ContextLengthRole, model.contextLength());
updateData(id, ModelList::GpuLayersRole, model.contextLength());
updateData(id, ModelList::GpuLayersRole, model.gpuLayers());
updateData(id, ModelList::RepeatPenaltyRole, model.repeatPenalty());
updateData(id, ModelList::RepeatPenaltyTokensRole, model.repeatPenaltyTokens());
updateData(id, ModelList::PromptTemplateRole, model.promptTemplate());

Loading…
Cancel
Save