MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / createModels

Method createModels

src/plugins/smartut/manager/uttaskpool.cpp:141–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void UTTaskPool::createModels(const QString &model)
142{
143 QList<AbstractLLM *> models;
144 for (int i = 0; i < kMaxModelCount; ++i) {
145 auto llm = SmartUTManager::instance()->findModel(model);
146 if (llm) {
147 models << llm;
148 connect(llm, &AbstractLLM::modelStateChanged, this, std::bind(&UTTaskPool::handleModelStateChanged, this, llm));
149 }
150 }
151
152 if (!models.isEmpty())
153 idleModels.insert(model, models);
154}

Callers

nothing calls this directly

Calls 4

connectFunction · 0.85
findModelMethod · 0.80
insertMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected